Opened 16 years ago

Closed 11 years ago

#9684 closed Bug (needsinfo)

Authentication Backend Supresses Some Exceptions

Reported by: David Cramer Owned by: nobody
Component: contrib.auth Version: dev
Severity: Normal Keywords: dceu13
Cc: eromijn@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

When using custom backends we noticed that sometimes errors are supressed. One such error was an invalid arguments error for .create() on the default manager.

# throws an exception because it should be a dictionary, instead of a list.
User.objects.create(*args)

The error above is supressed, and simply returns a failure on authenticate(), which can be a headache to debug.

Change History (5)

comment:1 by Jacob, 16 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Luke Plant, 14 years ago

Severity: Normal
Type: Bug

comment:3 by Aymeric Augustin, 13 years ago

UI/UX: unset

Change UI/UX from NULL to False.

comment:4 by Aymeric Augustin, 13 years ago

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:5 by Sasha Romijn, 11 years ago

Cc: eromijn@… added
Keywords: dceu13 added
Resolution: needsinfo
Status: newclosed

Based on the report, I can't really work out what the problem is. Considering the age and lack of activity on this ticket, I am closing it with needsinfo.
Feel free to reopen it if you can provide additional detail, like a more extensive example of the improper behaviour.

Note: See TracTickets for help on using tickets.
Back to Top