Opened 68 minutes ago

Last modified 4 minutes ago

#37079 assigned Bug

RemoteUserMiddleware assumes all ASGI requests will be handled by its async path

Reported by: Jacob Walls Owned by: Jacob Walls
Component: contrib.auth Version: 5.2
Severity: Normal Keywords:
Cc: Mykhailo Havelia, Sarah Boyce, Jon Janzen Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

As pointed out in a review, RemoteUserMiddleware doesn't account for the case where an ASGI request passes through (sync) process_request() due to subsequent sync-only middleware in the stack. This could cause the wrong header to be looked up.

Bug in 50f89ae850f6b4e35819fe725a08c7e579bfd099.

Change History (2)

comment:1 by Jacob Walls, 61 minutes ago

comment:2 by Jacob Walls, 4 minutes ago

Summary: RemoteUserMiddleware assumes all ASGI requests will be handled by its sync pathRemoteUserMiddleware assumes all ASGI requests will be handled by its async path
Note: See TracTickets for help on using tickets.
Back to Top