Bug 497632 - Issues with CGI handling
Issues with CGI handling
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: cups (Show other bugs)
All Linux
low Severity medium
: rc
: ---
Assigned To: Tim Waugh
Depends On:
  Show dependency treegraph
Reported: 2009-04-25 07:25 EDT by Opher Shachar
Modified: 2010-03-30 04:15 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-03-30 04:15:19 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
fix cups cgi issues (903 bytes, patch)
2009-04-25 07:25 EDT, Opher Shachar
no flags Details | Diff

External Trackers
Tracker ID Priority Status Summary Last Updated
CUPS Bugs and Features 2781 None None None Never
CUPS Bugs and Features 2816 None None None Never

  None (edit)
Description Opher Shachar 2009-04-25 07:25:13 EDT
Created attachment 341312 [details]
fix cups cgi issues

Description of problem:
There issues with CGI handling:
  1.  QUERY_STRING does not always get set. For example with:
      [1]   http://localhost:631/test.cgi?file1+file2&file3
      [2]   http://localhost:631/test.cgi?/path/to/file1+/path/to/file2
      QUERY_STRING is unset where it must be set to the whole substring following the "?".
      RFC#3875 (CGI/1.1 specification) section 4.1.7 states:
         The QUERY_STRING value provides the query-string part of the
         Script-URI.  (See section 3.3).
         The server MUST set this variable; if the Script-URI does not include
         a query component, the QUERY_STRING MUST be defined as an empty
         string ("").
  2.  Positional parameters are not always set. For example with:
      [2]   http://localhost:631/test.cgi?/path/to/file1+/path/to/file2
      positional parameters are not set where they should be:
         $1=/path/to/file1, $2=/path/to/file2.
Attached is a unified patch (also includes the fix in STR #2816).

Opher Shachar.

Version-Release number of selected component (if applicable):

How reproducible:
Comment 6 errata-xmlrpc 2010-03-30 04:15:19 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.