You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2010/02/12 03:23:16 UTC

DO NOT REPLY [Bug 48732] New: [BUG] environment variable SCRIPT_NAME output error

https://issues.apache.org/bugzilla/show_bug.cgi?id=48732

           Summary: [BUG] environment variable SCRIPT_NAME output error
           Product: Apache httpd-2
           Version: 2.0.63
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: All
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: qu-chunguang@necsoft.com.cn


<BUG REPRODUCTION>

1 install
./configure --prefix=/home/qcg/dev/save/apache2063 --enable-cgi --enable-cgid
make && make install
2 using 'cgi-bin/printenv' to print environment variables,
explorer url (with "//" path like under),
http://172.28.14.243:20630/cgi-bin/aa/bb/printenv/aa//bb
and return,
----
... ...
REQUEST_URI="/cgi-bin/printenv/aa//bb"
SCRIPT_FILENAME="/home/qcg/dev/save/apache2063/cgi-bin/printenv"
SCRIPT_NAME="/cgi-bin/printenv/aa"
... ...
----
SCRIPT_NAME should be "/cgi-bin/printenv"
we tested 2.0.59 has the same problem.

BUT 2.2.* seems no this problem.
we tested 2.2.4 in same way:
http://172.28.14.243:10080/cgi-bin/printenv/aa//bb
and return,
----
... ...
REQUEST_URI="/cgi-bin/printenv/aa//bb"
SCRIPT_FILENAME="/home/qcg/dev/save/apache2/cgi-bin/printenv"
SCRIPT_NAME="/cgi-bin/printenv"
... ...
----
SCRIPT_NAME is right.

<ON VERSION>
2.0.x
2.0.59 (has tested)
2.0.63 (has tested, newest 2.0.x)

<NOT ON VERSION>
2.2.*
2.2.4 (has tested)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 48732] [BUG] environment variable SCRIPT_NAME output error

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48732

--- Comment #1 from Kevin Q <qu...@necsoft.com.cn> 2010-02-20 04:01:07 UTC ---
Created an attachment (id=25027)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25027)
[patch] from 2.2.4 to 2.0.59

this patch is copyed from httpd-2.2.4 can be used on httpd-2.0.59.
And all versions of 2.0.x have the same problem.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 48732] [BUG] environment variable SCRIPT_NAME output error

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48732

Kevin Q <qu...@necsoft.com.cn> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |qu-chunguang@necsoft.com.cn

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org