#24315: Using UUIDField for id of custom User model prevents password reset 
confirm
view
---------------------------------+--------------------------------------
     Reporter:  jamesbeith       |                    Owner:  nobody
         Type:  Bug              |                   Status:  new
    Component:  contrib.auth     |                  Version:  1.8alpha1
     Severity:  Release blocker  |               Resolution:
     Keywords:                   |             Triage Stage:  Unreviewed
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+--------------------------------------
Changes (by jamesbeith):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Comment:

 Full traceback:

 {{{
 Environment:


 Request Method: GET
 Request URL:
 
http://www.example.com:8000/forgot/reset/YzY1OTJjNjItNzU0NS00ZDUwLTk2YzYtNGRkY2E0NThkZGRi/3z5-0ece360518cf9c96988a

 Django Version: 1.8a1
 Python Version: 3.4.2
 Installed Applications:
 ('common',
  'core',
  'account',
  'errors',
  'forgot',
  'home',
  'images',
  'pages',
  'posts',
  'register',
  'signin',
  'signout',
  'sites',
  'django.contrib.auth',
  'django.contrib.contenttypes',
  'django.contrib.sessions',
  'django.contrib.messages',
  'django.contrib.staticfiles')
 Installed Middleware:
 ('django.contrib.sessions.middleware.SessionMiddleware',
  'django.middleware.common.CommonMiddleware',
  'django.middleware.csrf.CsrfViewMiddleware',
  'django.contrib.auth.middleware.AuthenticationMiddleware',
  'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
  'django.contrib.messages.middleware.MessageMiddleware',
  'django.middleware.clickjacking.XFrameOptionsMiddleware',
  'django.middleware.security.SecurityMiddleware',
  'core.middleware.trailing_slash.AppendOrRemoveSlashMiddleware')


 Traceback:
 File "/Users/James/.virtualenvs/example/lib/python3.4/site-
 packages/django/core/handlers/base.py" in get_response
   131.                     response = wrapped_callback(request,
 *callback_args, **callback_kwargs)
 File
 "/Users/James/Documents/GitHub/example/example/project/forgot/views.py" in
 forgot_password_reset_confirm
   47.     return password_reset_confirm(request, *args, **kwargs)
 File "/Users/James/.virtualenvs/example/lib/python3.4/site-
 packages/django/views/decorators/debug.py" in
 sensitive_post_parameters_wrapper
   76.             return view(request, *args, **kwargs)
 File "/Users/James/.virtualenvs/example/lib/python3.4/site-
 packages/django/views/decorators/cache.py" in _wrapped_view_func
   54.         response = view_func(request, *args, **kwargs)
 File "/Users/James/.virtualenvs/example/lib/python3.4/site-
 packages/django/contrib/auth/views.py" in password_reset_confirm
   231.         user = UserModel._default_manager.get(pk=uid)
 File "/Users/James/.virtualenvs/example/lib/python3.4/site-
 packages/django/db/models/manager.py" in manager_method
   127.                 return getattr(self.get_queryset(), name)(*args,
 **kwargs)
 File "/Users/James/.virtualenvs/example/lib/python3.4/site-
 packages/django/db/models/query.py" in get
   325.         num = len(clone)
 File "/Users/James/.virtualenvs/example/lib/python3.4/site-
 packages/django/db/models/query.py" in __len__
   141.         self._fetch_all()
 File "/Users/James/.virtualenvs/example/lib/python3.4/site-
 packages/django/db/models/query.py" in _fetch_all
   962.             self._result_cache = list(self.iterator())
 File "/Users/James/.virtualenvs/example/lib/python3.4/site-
 packages/django/db/models/query.py" in iterator
   235.         results = compiler.execute_sql()
 File "/Users/James/.virtualenvs/example/lib/python3.4/site-
 packages/django/db/models/sql/compiler.py" in execute_sql
   830.             cursor.execute(sql, params)
 File "/Users/James/.virtualenvs/example/lib/python3.4/site-
 packages/django/db/backends/utils.py" in execute
   80.             return super(CursorDebugWrapper, self).execute(sql,
 params)
 File "/Users/James/.virtualenvs/example/lib/python3.4/site-
 packages/django/db/backends/utils.py" in execute
   65.                 return self.cursor.execute(sql, params)
 File "/Users/James/.virtualenvs/example/lib/python3.4/site-
 packages/django/db/utils.py" in __exit__
   95.                 six.reraise(dj_exc_type, dj_exc_value, traceback)
 File "/Users/James/.virtualenvs/example/lib/python3.4/site-
 packages/django/utils/six.py" in reraise
   658.             raise value.with_traceback(tb)
 File "/Users/James/.virtualenvs/example/lib/python3.4/site-
 packages/django/db/backends/utils.py" in execute
   65.                 return self.cursor.execute(sql, params)

 Exception Type: ProgrammingError at
 
/forgot/reset/YzY1OTJjNjItNzU0NS00ZDUwLTk2YzYtNGRkY2E0NThkZGRi/3z5-0ece360518cf9c96988a
 Exception Value: operator does not exist: uuid = bytea
 LINE 1: ..." FROM "common_person" WHERE "common_person"."id" = '\x63363...
                                                              ^
 HINT:  No operator matches the given name and argument type(s). You might
 need to add explicit type casts.
 }}}

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

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.9620c00a914d7f63a71952c71396304a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to