-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xmlrpc: Override the request saved by the threadlocal middleware
The auth mechanism of the XML-RPC view doesn't interact like the session middleware: By the time the request hit the threadlocal middleware request.user isn't populated. So, we override the threadlocal request (and thus request.user) as soon as we authenticate the user. As always, if a bug manage to slip through the cracks, the punishment is to write a test that covers it. Fixes: #168 Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
- Loading branch information
Damien Lespiau
committed
Mar 15, 2016
1 parent
43d7e27
commit 532baa9
Showing
2 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters