Bug 497632 - Issues with CGI handling
Issues with CGI handling
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: cups (Show other bugs)
5.3
All Linux
low Severity medium
: rc
: ---
Assigned To: Tim Waugh
BaseOS QE
:
Depends On:
Blocks:
  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:
Environment:
Last Closed: 2010-03-30 04:15:19 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
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:
Hello,
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).

Regards,
Opher Shachar.

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

How reproducible:
Always
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.

http://rhn.redhat.com/errata/RHBA-2010-0210.html

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