SE - ztracené heslo - 500, INTERNAL SERVER ERROR #15

Closed
opened 2017-09-18 20:02:02 +02:00 by Podhorecky · 12 comments
Podhorecky commented 2017-09-18 20:02:02 +02:00 (Migrated from git.spotter.cz)

Steps to reproduce

  1. Na homepage jsem místo registrace klikl na Ztracené heslo
  2. zadal jsem e-mail (předtím registrovaný)
  3. error ticket

Expected behaviour

dostanu do mailu info o ztraceném heslu

Observed behaviour

500, INTERNAL SERVER ERROR

Additional data (ticket URL, log, timestamp, stack trace etc.)

https://dasm.dasm.cz:8443/eden/admin/ticket/eden/77.87.240.4.2017-09-18.19-55-20.b839d983-4ab9-44c8-8359-90d07c9440ce#

jsem vlastně zvědav co do mailu přiletí.
Pokud nebude nastaven poštovní server, tak nic

CO jsem to tetoval naposledy, tak to bylo nepřeložitelné, tj. v angličtině.

### Steps to reproduce 1. Na homepage jsem místo registrace klikl na Ztracené heslo 2. zadal jsem e-mail (předtím registrovaný) 3. error ticket ### Expected behaviour dostanu do mailu info o ztraceném heslu ### Observed behaviour 500, INTERNAL SERVER ERROR ### Additional data (ticket URL, log, timestamp, stack trace etc.) https://dasm.dasm.cz:8443/eden/admin/ticket/eden/77.87.240.4.2017-09-18.19-55-20.b839d983-4ab9-44c8-8359-90d07c9440ce# jsem vlastně zvědav co do mailu přiletí. Pokud nebude nastaven poštovní server, tak nic CO jsem to tetoval naposledy, tak to bylo nepřeložitelné, tj. v angličtině.
Disassembler commented 2017-09-18 20:32:12 +02:00 (Migrated from git.spotter.cz)

Poštovní server v tuto chvíli skutečně zatím nastaven není, což vypadá, že je hlavní příčina chyby.

Řetězce mailů a zřejmě i jiných zpráv jsou velmi vtipně uloženy v modules/s3/s3aaa.py následovně:

        # @ToDo Move these to deployment_settings
        messages.approve_user = \
"""Your action is required to approve a New User for %(system_name)s:
%(first_name)s %(last_name)s
%(email)s
Please go to %(url)s to approve this user."""
        messages.email_approver_failed = "Failed to send mail to Approver - see if you can notify them manually!"
        messages.email_sent = "Verification Email sent - please check your email to validate. If you do not receive this email please check you junk email or spam filters"
        messages.email_verification_failed = "Unable to send verification email - either your email is invalid or our email server is down"
        messages.email_verified = "Email verified - you can now login"
        messages.duplicate_email = "This email address is already in use"
        messages.help_utc_offset = "The time difference between UTC and your timezone, specify as +HHMM for eastern or -HHMM for western timezones."
        messages.help_mobile_phone = "Entering a phone number is optional, but doing so allows you to subscribe to receive SMS messages."
        messages.help_organisation = "Entering an Organization is optional, but doing so directs you to the appropriate approver & means you automatically get the appropriate permissions."
        messages.help_image = "You can either use %(gravatar)s or else upload a picture here. The picture will be resized to 50x50."
        messages.label_image = "Profile Image"
        messages.label_organisation_id = "Organization"
        messages.label_org_group_id = "Coalition"
        messages.label_remember_me = "Remember Me"
        messages.label_utc_offset = "UTC Offset"
        #messages.logged_in = "Signed In"
        #messages.logged_out = "Signed Out"
        #messages.submit_button = "Signed In"
        messages.new_user = \
"""A New User has registered for %(system_name)s:
%(first_name)s %(last_name)s
%(email)s
No action is required."""
        messages.password_reset_button = "Request password reset"
        messages.profile_save_button = "Apply changes"
        messages.registration_disabled = "Registration Disabled!"
        messages.registration_verifying = "You haven't yet Verified your account - please check your email"
        messages.reset_password = "Click on the link %(url)s to reset your password"
        messages.verify_email = "Click on the link %(url)s to verify your email"
        messages.verify_email_subject = "%(system_name)s - Verify Email"
        messages.welcome_email_subject = "Welcome to %(system_name)s"
        messages.welcome_email = \
"""Welcome to %(system_name)s
 - You can start using %(system_name)s at: %(url)s
 - To edit your profile go to: %(url)s%(profile)s
Thank you"""

Pokud je přeložíte, můžeme udělat lokální patch a nahradit je v souboru přímo. Případně se Váš programátor může pokusit vyřešit cizí ToDo a udělat je skutečně konfigurovatelné.

Poštovní server v tuto chvíli skutečně zatím nastaven není, což vypadá, že je hlavní příčina chyby. Řetězce mailů a zřejmě i jiných zpráv jsou velmi vtipně uloženy v *modules/s3/s3aaa.py* následovně: ```python # @ToDo Move these to deployment_settings messages.approve_user = \ """Your action is required to approve a New User for %(system_name)s: %(first_name)s %(last_name)s %(email)s Please go to %(url)s to approve this user.""" messages.email_approver_failed = "Failed to send mail to Approver - see if you can notify them manually!" messages.email_sent = "Verification Email sent - please check your email to validate. If you do not receive this email please check you junk email or spam filters" messages.email_verification_failed = "Unable to send verification email - either your email is invalid or our email server is down" messages.email_verified = "Email verified - you can now login" messages.duplicate_email = "This email address is already in use" messages.help_utc_offset = "The time difference between UTC and your timezone, specify as +HHMM for eastern or -HHMM for western timezones." messages.help_mobile_phone = "Entering a phone number is optional, but doing so allows you to subscribe to receive SMS messages." messages.help_organisation = "Entering an Organization is optional, but doing so directs you to the appropriate approver & means you automatically get the appropriate permissions." messages.help_image = "You can either use %(gravatar)s or else upload a picture here. The picture will be resized to 50x50." messages.label_image = "Profile Image" messages.label_organisation_id = "Organization" messages.label_org_group_id = "Coalition" messages.label_remember_me = "Remember Me" messages.label_utc_offset = "UTC Offset" #messages.logged_in = "Signed In" #messages.logged_out = "Signed Out" #messages.submit_button = "Signed In" messages.new_user = \ """A New User has registered for %(system_name)s: %(first_name)s %(last_name)s %(email)s No action is required.""" messages.password_reset_button = "Request password reset" messages.profile_save_button = "Apply changes" messages.registration_disabled = "Registration Disabled!" messages.registration_verifying = "You haven't yet Verified your account - please check your email" messages.reset_password = "Click on the link %(url)s to reset your password" messages.verify_email = "Click on the link %(url)s to verify your email" messages.verify_email_subject = "%(system_name)s - Verify Email" messages.welcome_email_subject = "Welcome to %(system_name)s" messages.welcome_email = \ """Welcome to %(system_name)s - You can start using %(system_name)s at: %(url)s - To edit your profile go to: %(url)s%(profile)s Thank you""" ``` Pokud je přeložíte, můžeme udělat lokální patch a nahradit je v souboru přímo. Případně se Váš programátor může pokusit vyřešit cizí *ToDo* a udělat je skutečně konfigurovatelné.
Podhorecky commented 2017-09-18 21:01:35 +02:00 (Migrated from git.spotter.cz)
[mail.txt](/uploads/2eb3d90d90aa97a7627a8a721384227e/mail.txt)
Disassembler commented 2017-09-18 23:29:53 +02:00 (Migrated from git.spotter.cz)

closed via commit 95b663ca4d

closed via commit 95b663ca4dae5a1f04173fa929124ebaddd23a07
Disassembler commented 2017-09-18 23:31:02 +02:00 (Migrated from git.spotter.cz)

Maily mailujou, řetězce budu řešit zítra. Nakonec to vypadá, že možná půjdou přidat k ostatním překladům.

Maily mailujou, řetězce budu řešit zítra. Nakonec to vypadá, že možná půjdou přidat k ostatním překladům.
Disassembler commented 2017-09-18 23:31:02 +02:00 (Migrated from git.spotter.cz)

reopened

reopened
Podhorecky commented 2017-09-19 14:07:48 +02:00 (Migrated from git.spotter.cz)

zkusil jsem si poslat heslo, mail mi dorazil do spamu (to nevadí)

obsah mailu:

Click on the link https://dasm.dasm.cz:8443/eden/default/user/reset_password?key=1505822746-cb44c5af-945c-4216-b7e1-aec7be2dcc34 to reset your password

po kliknutí strana nefunguje.

zkusil jsem si poslat heslo, mail mi dorazil do spamu (to nevadí) obsah mailu: Click on the link https://dasm.dasm.cz:8443/eden/default/user/reset_password?key=1505822746-cb44c5af-945c-4216-b7e1-aec7be2dcc34 to reset your password po kliknutí strana nefunguje.
Podhorecky commented 2017-09-19 14:11:01 +02:00 (Migrated from git.spotter.cz)

aha... tak problém není na vašem vysílači, ale na mém přijímači..
Strana se z mailu otevírá v Safari, které blokuje untrusted stránky a není proti tomu řešení (všichni nadávají Applu co to udělal zahovadinu)
takže cokoliv z virtuální image asi nebude dostupné browserem Safari, ale to bych teď neřešil. Museli bychom mít certifikát.

Když jsem odkaz otevřel v Chrome, tak stránka OK.

aha... tak problém není na vašem vysílači, ale na mém přijímači.. Strana se z mailu otevírá v Safari, které blokuje untrusted stránky a není proti tomu řešení (všichni nadávají Applu co to udělal zahovadinu) takže cokoliv z virtuální image asi nebude dostupné browserem Safari, ale to bych teď neřešil. Museli bychom mít certifikát. Když jsem odkaz otevřel v Chrome, tak stránka OK.
Disassembler commented 2017-09-19 15:11:31 +02:00 (Migrated from git.spotter.cz)

Otevřel jsem pull request #1380 v upstreamu na možnost lokalizace těch řetězců, tak uvidíme jak rychle nás s tím pošlou do řiti.

Otevřel jsem pull request [#1380](https://github.com/sahana/eden/pull/1380) v upstreamu na možnost lokalizace těch řetězců, tak uvidíme jak rychle nás s tím pošlou do řiti.
Disassembler commented 2017-09-19 15:58:10 +02:00 (Migrated from git.spotter.cz)

Hm. Tak prý "There is no need for this: the Messages structure is already localisable by default". Což se mi nezdá. Zprávy se dají upravit, resp. vyměnit za jiný pevný řetězec, ale to není lokalizace, to je jen customizace. Zeptal bych se na to na google groups. Mám použít svůj google účet nebo na to máte taky nějaký na půjčení?

Hm. Tak prý *"There is no need for this: the Messages structure is already localisable by default"*. Což se mi nezdá. Zprávy se dají upravit, resp. vyměnit za jiný pevný řetězec, ale to není lokalizace, to je jen customizace. Zeptal bych se na to na google groups. Mám použít svůj google účet nebo na to máte taky nějaký na půjčení?
Podhorecky commented 2017-09-19 16:01:47 +02:00 (Migrated from git.spotter.cz)

v google groups klidně dskutujte svým jménem, tam se ptá kdekdo. Já se ptal vždy jako "nezkušený" ale jsou tam i zkušené dotazy '. Odpovídá většinou Fran a Dominic.

v google groups klidně dskutujte svým jménem, tam se ptá kdekdo. Já se ptal vždy jako "nezkušený" ale jsou tam i zkušené dotazy '. Odpovídá většinou Fran a Dominic.
Disassembler commented 2017-09-19 19:38:13 +02:00 (Migrated from git.spotter.cz)

closed via commit 38173162e8

closed via commit 38173162e814024a42b7ce83e61fcfab43583e17
Podhorecky commented 2018-03-14 22:57:43 +01:00 (Migrated from git.spotter.cz)

changed milestone to %2

changed milestone to %2
Sign in to join this conversation.
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Disassembler/Spotter-VM#15
No description provided.