Opened 10 years ago
Last modified 9 years ago
#761 new enhancement
The auth_request does not supports query string/arguments
Reported by: | rustler2000.livejournal.com | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | nginx-module | Version: | |
Keywords: | auth, auth_request | Cc: | |
uname -a: | |||
nginx -V: |
nginx version: nginx/1.8.0 (i686-pc-linux-gnu)
built by gcc 4.6.2 ... |
Description
Having in config:
auth_request /users/v1/auth?usergroup=devel;
The debug log from nginx shows:
2013/01/01 01:52:49 [notice] 1607#0: *125 "^/users/(.*)" matches "/users/v1/auth?usergroup=devel", client: 10.9.96.2, server: localhost, request: "GET /runner/v1/status HTTP/1.1", subrequest: "/users/v1/auth?usergroup=devel", host: "10.9.96.81" 2013/01/01 01:52:49 [notice] 1607#0: *125 rewritten data: "/v1/auth?usergroup=devel", args: "", client: 10.9.96.2, server: localhost, request: "GET /runner/v1/status HTTP/1.1", subrequest: "/users/v1/auth?usergroup=devel", host: "10.9.96.81"
The strace on upstream shows:
recv(6, "GET /v1/auth%3Fusergroup=devel H"..., 8192, 0) = 507
As it seen - the question mark separating path and query got urlencoded and whole query string became part of path.
Checking the code of auth_request seems that subrequest made w/o taking care of args - there is NULL passed.
Change History (2)
comment:1 by , 10 years ago
comment:2 by , 9 years ago
Type: | defect → enhancement |
---|
Note:
See TracTickets
for help on using tickets.
Fix: