Opened 8 years ago

Closed 3 years ago

#9684 closed Bug (needsinfo)

Authentication Backend Supresses Some Exceptions

Reported by: David Cramer Owned by: nobody
Component: contrib.auth Version: master
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 Changed 8 years ago by Jacob

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

comment:2 Changed 5 years ago by Luke Plant

Severity: Normal
Type: Bug

comment:3 Changed 5 years ago by Aymeric Augustin

UI/UX: unset

Change UI/UX from NULL to False.

comment:4 Changed 5 years ago by Aymeric Augustin

Easy pickings: unset

Change Easy pickings from NULL to False.

comment:5 Changed 3 years ago by Erik Romijn

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