[Python-modules-commits] r31664 - in packages/python-django-registration/trunk/debian (3 files)

absurd at users.alioth.debian.org absurd at users.alioth.debian.org
Thu Jan 15 11:40:14 UTC 2015


    Date: Thursday, January 15, 2015 @ 11:38:46
  Author: absurd
Revision: 31664

Bug fix: "Uses wrong uid encoding (uidb36 vs. uidb64) in auth_url.py for django >= 1.6 (breaks reset password URLs)" (Closes: #775363)

Added:
  packages/python-django-registration/trunk/debian/patches/django-1.6-uid-encoding.patch
Modified:
  packages/python-django-registration/trunk/debian/changelog
  packages/python-django-registration/trunk/debian/patches/series

Modified: packages/python-django-registration/trunk/debian/changelog
===================================================================
--- packages/python-django-registration/trunk/debian/changelog	2015-01-15 11:29:43 UTC (rev 31663)
+++ packages/python-django-registration/trunk/debian/changelog	2015-01-15 11:38:46 UTC (rev 31664)
@@ -1,3 +1,10 @@
+python-django-registration (1.0+dfsg-2+unreleased0) UNRELEASED; urgency=medium
+
+  * Bug fix: "Uses wrong uid encoding (uidb36 vs. uidb64) in auth_url.py
+    for django >= 1.6 (breaks reset password URLs)" (Closes: #775363).
+
+ -- Stephan Sürken <absurd at debian.org>  Thu, 15 Jan 2015 11:27:28 +0000
+
 python-django-registration (1.0+dfsg-2) unstable; urgency=medium
 
   * Fix and enable the test suite with fix-testsuite.patch. Ensure

Added: packages/python-django-registration/trunk/debian/patches/django-1.6-uid-encoding.patch
===================================================================
--- packages/python-django-registration/trunk/debian/patches/django-1.6-uid-encoding.patch	                        (rev 0)
+++ packages/python-django-registration/trunk/debian/patches/django-1.6-uid-encoding.patch	2015-01-15 11:38:46 UTC (rev 31664)
@@ -0,0 +1,16 @@
+Description: Adapts uid encoding for django >= 1.6 for the "password reset" URL pattern
+Origin: https://docs.djangoproject.com/en/1.6/releases/1.6/#django-contrib-auth-password-reset-uses-base-64-encoding-of-user-pk
+Author: Stephan Sürken <absurd at debian.org>
+Bug-Debian: https://bugs.debian.org/775363
+
+--- python-django-registration-1.0+dfsg.orig/registration/auth_urls.py
++++ python-django-registration-1.0+dfsg/registration/auth_urls.py
+@@ -48,7 +48,7 @@ urlpatterns = patterns('',
+                        url(r'^password/reset/$',
+                            auth_views.password_reset,
+                            name='auth_password_reset'),
+-                       url(r'^password/reset/confirm/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$',
++                       url(r'^password/reset/confirm/(?P<uidb64>[0-9A-Za-z]+)-(?P<token>.+)/$',
+                            auth_views.password_reset_confirm,
+                            name='auth_password_reset_confirm'),
+                        url(r'^password/reset/complete/$',

Modified: packages/python-django-registration/trunk/debian/patches/series
===================================================================
--- packages/python-django-registration/trunk/debian/patches/series	2015-01-15 11:29:43 UTC (rev 31663)
+++ packages/python-django-registration/trunk/debian/patches/series	2015-01-15 11:38:46 UTC (rev 31664)
@@ -2,3 +2,4 @@
 fix-test-suite.patch
 django-1.7-compat.patch
 more-django-1.7-fixes.patch
+django-1.6-uid-encoding.patch




More information about the Python-modules-commits mailing list