[Django] #21826: Forgot your password? "page unavailable"

6 views
Skip to first unread message

Django

unread,
Jan 19, 2014, 1:58:56 PM1/19/14
to django-...@googlegroups.com
#21826: Forgot your password? "page unavailable"
-------------------------------------+--------------------
Reporter: anonymous | Owner: nobody
Type: Bug | Status: new
Component: *.djangoproject.com | Version: 1.6
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+--------------------
Link goes to: https://www.djangoproject.com/accounts/password/reset/

Which is returning:

{{{

Page unavailable

We're sorry, but the requested page is currently unavailable.

We're messing around with things internally, and the server had a bit of a
hiccup.

Please try again later.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/21826>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 19, 2014, 2:14:41 PM1/19/14
to django-...@googlegroups.com
#21826: Forgot your password? "page unavailable"
-------------------------------------+------------------------------------

Reporter: anonymous | Owner: nobody
Type: Bug | Status: new
Component: *.djangoproject.com | Version: 1.6
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+------------------------------------
Changes (by bmispelon):

* needs_better_patch: => 0
* stage: Unreviewed => Accepted
* needs_tests: => 0
* needs_docs: => 0


Comment:

I get the same error.

--
Ticket URL: <https://code.djangoproject.com/ticket/21826#comment:1>

Django

unread,
Jan 19, 2014, 3:33:37 PM1/19/14
to django-...@googlegroups.com
#21826: Forgot your password? "page unavailable"
-------------------------------------+------------------------------------
Reporter: anonymous | Owner: nobody
Type: Bug | Status: closed
Component: *.djangoproject.com | Version: 1.6
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: new => closed
* resolution: => fixed


Comment:

In
[changeset:"104e726d9a3e4df73f0471c3872379e738b1751c/djangoproject.com"]:
{{{
#!CommitTicketReference repository="djangoproject.com"
revision="104e726d9a3e4df73f0471c3872379e738b1751c"
Fixed #21826 -- Updated password reset URL for Django 1.6
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/21826#comment:2>

Django

unread,
Jan 19, 2014, 4:28:00 PM1/19/14
to django-...@googlegroups.com
#21826: Forgot your password? "page unavailable"
-------------------------------------+------------------------------------

Reporter: anonymous | Owner: nobody
Type: Bug | Status: new
Component: *.djangoproject.com | Version: 1.6
Severity: Normal | Resolution:

Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+------------------------------------
Changes (by bmispelon):

* status: closed => new
* resolution: fixed =>


Comment:

The problem is still there:

When you go to https://code.djangoproject.com/, there's a "Forgot your
password?" link at the top that takes you to
https://www.djangoproject.com/accounts/password/reset/.

That page shows a 500 error (our customized one anyway).

I can reproduce the error on my local install:
{{{
Environment:


Request Method: GET
Request URL: http://localhost:8000/accounts/password/reset/

Django Version: 1.6.1
Python Version: 2.7.6
Installed Applications:
['django.contrib.sites',
'django.contrib.auth',
'django.contrib.admin',
'django.contrib.contenttypes',
'django.contrib.flatpages',
'django.contrib.humanize',
'django.contrib.messages',
'django.contrib.redirects',
'django.contrib.sessions',
'django.contrib.staticfiles',
'django.contrib.sitemaps',
'django_push.subscriber',
'djangosecure',
'registration',
'south',
'accounts',
'aggregator',
'blog',
'cla',
'contact',
'docs',
'legacy',
'releases',
'svntogit',
'tracdb']
Installed Middleware:
['django.middleware.cache.UpdateCacheMiddleware',
'djangosecure.middleware.SecurityMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
'django.contrib.redirects.middleware.RedirectFallbackMiddleware',
'django.middleware.cache.FetchFromCacheMiddleware']


Traceback:
File "./djangoproject.com/env2/lib/python2.7/site-
packages/django/core/handlers/base.py" in get_response
114. response = wrapped_callback(request,
*callback_args, **callback_kwargs)
File "./djangoproject.com/env2/lib/python2.7/site-
packages/django/utils/decorators.py" in _wrapped_view
99. response = view_func(request, *args, **kwargs)
File "./djangoproject.com/env2/lib/python2.7/site-
packages/django/contrib/auth/views.py" in password_reset
142. post_reset_redirect = reverse('password_reset_done')
File "./djangoproject.com/env2/lib/python2.7/site-
packages/django/core/urlresolvers.py" in reverse
509. return iri_to_uri(resolver._reverse_with_prefix(view, prefix,
*args, **kwargs))
File "./djangoproject.com/env2/lib/python2.7/site-
packages/django/core/urlresolvers.py" in _reverse_with_prefix
429. (lookup_view_s, args, kwargs,
len(patterns), patterns))

Exception Type: NoReverseMatch at /accounts/password/reset/
Exception Value: Reverse for 'password_reset_done' with arguments '()' and
keyword arguments '{}' not found. 0 pattern(s) tried: []

}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/21826#comment:3>

Django

unread,
Jan 19, 2014, 6:33:57 PM1/19/14
to django-...@googlegroups.com
#21826: Forgot your password? "page unavailable"
-------------------------------------+------------------------------------

Reporter: anonymous | Owner: nobody
Type: Bug | Status: new
Component: *.djangoproject.com | Version: 1.6
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+------------------------------------

Comment (by timo):

I don't think anyone deployed the code I committed. We should try that and
verify we get that same error message on the server.

--
Ticket URL: <https://code.djangoproject.com/ticket/21826#comment:4>

Django

unread,
Jan 19, 2014, 6:56:28 PM1/19/14
to django-...@googlegroups.com
#21826: Forgot your password? "page unavailable"
-------------------------------------+------------------------------------

Reporter: anonymous | Owner: nobody
Type: Bug | Status: new
Component: *.djangoproject.com | Version: 1.6
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+------------------------------------
Changes (by bmispelon):

* has_patch: 0 => 1


Comment:

I looked deeper into the issue and it's not just a URLconf problem.

Django-registration is not compatible with Django 1.6 and that ends up
creating a few issues:

1) django-registration's URLconf doesn't define a view named
`password_reset_done`, which makes the `auth.password_reset` view fail
(that's the traceback).
2) django-registration's URLconf uses the old uidb36 regexp but the view
actually generates a new uidb64. This in turn generates invalid links in
the email it sends out.

All this can be fixed by trying to use Django's stock URLconf for auth
URLs before using django-registration's one.

The issue 2) I mentionned could pose a potential backwards-compatibility
issue because in theory, we should support the invalid links that would
have been generated. However, since issue 1) prevented the system from
sending out any emails, there's no need to add support for that.


So here's the PR with my suggested changes:
https://github.com/django/djangoproject.com/pull/71/.
I believe that should fix the issue (and it does on my local install) and
it shouldn't break anything either (famous last words...).

--
Ticket URL: <https://code.djangoproject.com/ticket/21826#comment:5>

Django

unread,
Jan 20, 2014, 10:42:07 AM1/20/14
to django-...@googlegroups.com
#21826: Forgot your password? "page unavailable"
-------------------------------------+------------------------------------
Reporter: anonymous | Owner: nobody
Type: Bug | Status: closed
Component: *.djangoproject.com | Version: 1.6
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+------------------------------------
Changes (by Baptiste Mispelon <bmispelon@…>):

* status: new => closed
* resolution: => fixed


Comment:

In
[changeset:"aa64079e3957ab16a03a7d8e88c74c53c4a6477d/djangoproject.com"]:
{{{
#!CommitTicketReference repository="djangoproject.com"
revision="aa64079e3957ab16a03a7d8e88c74c53c4a6477d"
Fixed #21826 -- Fixed password reset views.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/21826#comment:6>

Django

unread,
Jan 22, 2014, 9:31:29 AM1/22/14
to django-...@googlegroups.com
#21826: Forgot your password? "page unavailable"
-------------------------------------+------------------------------------
Reporter: anonymous | Owner: nobody
Type: Bug | Status: closed
Component: *.djangoproject.com | Version: 1.6

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+------------------------------------

Comment (by anonymous):

Has this been fixed git github but not deployed yet? I'm still getting the
page unavailable on forgot password link...

--
Ticket URL: <https://code.djangoproject.com/ticket/21826#comment:7>

Django

unread,
Jan 22, 2014, 9:34:42 AM1/22/14
to django-...@googlegroups.com
#21826: Forgot your password? "page unavailable"
-------------------------------------+------------------------------------
Reporter: anonymous | Owner: nobody
Type: Bug | Status: closed
Component: *.djangoproject.com | Version: 1.6

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+------------------------------------

Comment (by bmispelon):

Yes, that's exactly what's happening.

We had some changes in our server infrastructure and the new deploying
workflow hasn't been ironed out completely, hence why it's taking some
time.

I'll post a comment here when it's deployed.

--
Ticket URL: <https://code.djangoproject.com/ticket/21826#comment:8>

Django

unread,
Jan 29, 2014, 7:28:25 AM1/29/14
to django-...@googlegroups.com
#21826: Forgot your password? "page unavailable"
-------------------------------------+------------------------------------
Reporter: anonymous | Owner: nobody
Type: Bug | Status: closed
Component: *.djangoproject.com | Version: 1.6

Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+------------------------------------

Comment (by bmispelon):

FYI the fix got deployed today so everything should be back to normal now.

--
Ticket URL: <https://code.djangoproject.com/ticket/21826#comment:9>

Reply all
Reply to author
Forward
0 new messages