User created from submission cannot login
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad Results |
Fix Released
|
High
|
Marc Tardif |
Bug Description
When a user was created from a submission, it is not possible to login because the OpenID integration attempts to create the user again. The solution is to check if the nickname exists already in addition to the identify url. Here's the traceback:
WARNING:
File "/usr/lib/
response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/
user = authenticate(
File "/usr/lib/
user = backend.
File "/usr/lib/
response.
File "/usr/lib/
store.flush()
File "/usr/lib/
self.
File "/usr/lib/
result = self._connectio
File "/usr/lib/
result = Connection.
File "/usr/lib/
raw_cursor = self.raw_
File "/usr/lib/
return Connection.
File "/usr/lib/
self.
File "/usr/lib/
return function(*args, **kwargs)
IntegrityError: duplicate key value violates unique constraint "person__name__key"
Changed in launchpad-results: | |
assignee: | nobody → Marc Tardif (cr3) |
status: | New → Triaged |
importance: | Undecided → Critical |
importance: | Critical → High |
Changed in launchpad-results: | |
status: | Triaged → Fix Committed |
Changed in launchpad-results: | |
status: | Fix Committed → Fix Released |