-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QUERY_STRING env. variable not beeing set #2173
Comments
CUPS.org User: mike Fixed in Subversion repository. |
"str2173.patch": Index: client.c--- client.c (revision 6197)
if (con->request) cupsdClearString(&con->command);
if (con->request) cupsdClearString(&con->command);
if (!con->http.keep_alive) if ((options = strchr(con->uri, '?')) != NULL)
/*
if (options)
argc = 1; if (con->operation == HTTP_GET)
- cupsdLogMessage(CUPSD_LOG_DEBUG2, "argv[%d] = "%s"", i, argv[i]);
- cupsdClearString(&query_string);
@@ -4351,8 +4354,6 @@ - cupsdClearString(&query_string);return (pid); Index: client.h--- client.h (revision 6197)
|
Version: 1.2.7
CUPS.org User: opher
Hello all,
I've written a custom CGI that will accept a query string on it's url.
When I browse to this URL:
https://localhost:631/ojobs.cgi?op=modify-job&job_id=63&job_options=cpi=10+lpi=8
I get no QUERY_STRING environment variable.
(error_log follows)
Thanks,
Opher Shachar.
error_log: (log level = debug2)
D [24/Dec/2006:16:31:42 +0200] cupsdReadClient: 16 GET /ojobs.cgi?op=modify-job&job_id=63&job_options=cpi=10+lpi=8 HTTP/1.1
D [24/Dec/2006:16:31:42 +0200] cupsdReadClient: 16 Browser asked for language "he-il.utf-8"...
d [24/Dec/2006:16:31:42 +0200] cupsdFindBest: uri = "/ojobs.cgi?op=modify-job&job_id=63&job_options=cpi=10+lpi=8"...
[snip]
d [24/Dec/2006:16:31:42 +0200] cupsdFindBest: best = /
[snip]
d [24/Dec/2006:16:31:42 +0200] get_file: 16 filename=/usr/share/doc/cups-1.2.7/ojobs.cgi size=3404
d [24/Dec/2006:16:31:42 +0200] is_cgi(con=0x97e6df0, filename="/usr/share/doc/cups-1.2.7/ojobs.cgi", filestats=0xbf852bd4, type=application/x-httpd-cgi)
d [24/Dec/2006:16:31:42 +0200] is_cgi: Returning 1 with command="/usr/share/doc/cups-1.2.7/ojobs.cgi" and options="op=modify-job&job_id=63&job_options=cpi=10+lpi=8"
d [24/Dec/2006:16:31:42 +0200] pipe_command: command="/usr/share/doc/cups-1.2.7/ojobs.cgi", options="op=modify-job&job_id=63&job_options=cpi=10+lpi=8"
d [24/Dec/2006:16:31:42 +0200] argv[0] = "/usr/share/doc/cups-1.2.7/ojobs.cgi"
d [24/Dec/2006:16:31:42 +0200] argv[1] = "op=modify-job&job_id=63&job_options=cpi=10"
d [24/Dec/2006:16:31:42 +0200] argv[2] = "lpi=8"
d [24/Dec/2006:16:31:42 +0200] pipe_command: argv[0] = "/usr/share/doc/cups-1.2.7/ojobs.cgi"
d [24/Dec/2006:16:31:42 +0200] pipe_command: argv[1] = "op=modify-job&job_id=63&job_options=cpi=10"
d [24/Dec/2006:16:31:42 +0200] pipe_command: argv[2] = "lpi=8"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[0] = "CUPS_CACHEDIR=/var/cache/cups"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[1] = "CUPS_DATADIR=/usr/share/cups"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[2] = "CUPS_DOCROOT=/usr/share/doc/cups-1.2.7"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[3] = "CUPS_FONTPATH=/usr/share/cups/fonts"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[4] = "CUPS_REQUESTROOT=/var/spool/cups"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[5] = "CUPS_SERVERBIN=/usr/lib/cups"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[6] = "CUPS_SERVERROOT=/etc/cups"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[7] = "CUPS_STATEDIR=/var/run/cups"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[8] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[9] = "SERVER_ADMIN=root@fc6.ladpc.co.il"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[10] = "SOFTWARE=CUPS/1.2.7"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[11] = "TMPDIR=/var/spool/cups/tmp"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[12] = "USER=root"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[13] = "CUPS_SERVER=/var/run/cups/cups.sock"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[14] = "CUPS_ENCRYPTION=IfRequested"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[15] = "IPP_PORT=631"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[16] = "LANG=he_IL.UTF-8"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[17] = "REDIRECT_STATUS=1"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[18] = "SERVER_NAME=fc6.iula.org.il"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[19] = "SERVER_PORT=631"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[20] = "REMOTE_ADDR=10.236.42.48"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[21] = "REMOTE_HOST=10.236.42.48"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[22] = "SCRIPT_NAME=/ojobs.cgi"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[23] = "SERVER_PROTOCOL=HTTP/1.1"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[24] = "HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; MathPlayer 2.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; FDM)"
d [24/Dec/2006:16:31:42 +0200] pipe_command: envp[25] = "REQUEST_METHOD=GET"
d [24/Dec/2006:16:31:42 +0200] cupsdStartProcess("/usr/share/doc/cups-1.2.7/ojobs.cgi", 0xbf8454e0, 0xbf84530c, -1, 19, 9)
D [24/Dec/2006:16:31:42 +0200] CGI /usr/share/doc/cups-1.2.7/ojobs.cgi started - PID = 11785
I [24/Dec/2006:16:31:42 +0200] Started "/usr/share/doc/cups-1.2.7/ojobs.cgi" (pid=11785)
The text was updated successfully, but these errors were encountered: