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 2009/11/28 07:26:39 UTC

DO NOT REPLY [Bug 48295] New: ProxyPassReverseCookiePath: Not changing path correctly.

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

           Summary: ProxyPassReverseCookiePath: Not changing path
                    correctly.
           Product: Apache httpd-2
           Version: 2.2.14
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: J.Gao@isu.usyd.edu.au


>From Apache documentation:

"Usage is basically similar to ProxyPassReverse, but instead of rewriting
headers that are a URL, this rewrites the path string in Set-Cookie headers."

It does not seem to be the case.

Example:

<Location /sss/>
ProxyHTMLEnable On
ProxyPass http://backend.server/
ProxyPassReverse /
ProxyHTMLURLMap / /sss/
ProxyPassReverseCookiePath / /sss/
</Location>

This will rewrite cookie path from backend server's /cgi-bin to /sss/ for the
frontend server.

Is this intended behaviour?



Jie

-- 
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 48295] ProxyPassReverseCookiePath: Not changing path correctly.

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

Jie Gao <J....@isu.usyd.edu.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #2 from Jie Gao <J....@isu.usyd.edu.au> 2009-11-28 17:47:34 UTC ---
Script setting the cookie:

#!/usr/bin/perl -w

use strict;
use CGI;

my $q = new CGI;

my $cookie_1 = $q->cookie(-name=>'jie_COOKIE_1',
    -value=>'BEST_COOKIE=chocolatechip',
    -domain=>'www-dev.xxxxxx.xxx.xx',
    -path=>'/cgi-bin');

print $q->header(-cookie=>$cookie_1);


print $q->start_html('My cookie-set.cgi program');
print $q->h3('The cookie has been set');

print $q->end_html;
-----------------------------------------------------

Running it directly to the backend server


HTTP/1.0 200 OK
Date: Sun, 29 Nov 2009 01:42:56 GMT
Server: Apache/2.2.3 (Red Hat)
Set-Cookie: jie_COOKIE_1=BEST_COOKIE%3Dchocolatechip; domain=xxx.xxx.xxx;
path=/cgi-bin
Content-Type: text/html; charset=ISO-8859-1
X-Cache: MISS from www-cacheE.xxx.xxx.xx
X-Cache-Lookup: MISS from www-cacheE.xxx.xxx.xx:8080
Via: 1.0 www-cacheE.xxx.xxx.xx:8080 (squid/2.6.STABLE5)
Proxy-Connection: close

Running it on the rp server:

HTTP/1.0 200 OK
Date: Sun, 29 Nov 2009 01:46:24 GMT
Server: Apache/2.2.3 (Red Hat)
Content-Type: text/html; charset=utf-8
Set-Cookie: jie_COOKIE_1=BEST_COOKIE%3Dchocolatechip;
domain=www-dev.xxx.xxx.xx; path=/sss/
X-Cache: MISS from www-cacheE.xxxx.xxx.xx
X-Cache-Lookup: MISS from www-cacheE.xxx.xxx.xx:8080
Via: 1.0 www-cacheE.xxx.xx.xx:8080 (squid/2.6.STABLE5)
Proxy-Connection: close

-- 
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 48295] ProxyPassReverseCookiePath: Not changing path correctly.

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

--- Comment #6 from Jie Gao <J....@isu.usyd.edu.au> 2009-11-29 18:34:50 UTC ---
>From rfc 2965:

Path    Defaults to the path of the request URL that generated the
           Set-Cookie2 response, up to and including the right-most /.

-- 
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 48295] ProxyPassReverseCookiePath: Not changing path correctly.

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

--- Comment #8 from Mark Thomas <ma...@apache.org> 2009-11-30 16:46:36 GMT ---
Note that due to a data loss on 26/27 Nov 2009 the issue that was originally
created as bug 48295 was lost. It has been re-created as bug 48306.

-- 
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 48295] ProxyPassReverseCookiePath: Not changing path correctly.

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

Nick Kew <ni...@webthing.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #3 from Nick Kew <ni...@webthing.com> 2009-11-28 18:33:58 UTC ---
Path is defined as the component of the URL up to and including the rightmost
slash.  So the path of "/cgi-bin" is "/".

-- 
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 48295] ProxyPassReverseCookiePath: Not changing path correctly.

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

Jie Gao <J....@isu.usyd.edu.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |

-- 
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 48295] ProxyPassReverseCookiePath: Not changing path correctly.

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

--- Comment #5 from Jie Gao <J....@isu.usyd.edu.au> 2009-11-28 19:19:54 UTC ---
I changed the script to set the cookie path to "/cgi-bin/', but I got the same
result from the RP as before.

-- 
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 48295] ProxyPassReverseCookiePath: Not changing path correctly.

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

--- Comment #4 from Jie Gao <J....@isu.usyd.edu.au> 2009-11-28 19:17:34 UTC ---
I changed the script to set the cookie path to "/cgi-bin/', but I got the same
result from the RP as before.

-- 
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 48295] ProxyPassReverseCookiePath: Not changing path correctly.

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

--- Comment #7 from Jie Gao <J....@isu.usyd.edu.au> 2009-11-30 16:02:01 UTC ---
*** Bug 48312 has been marked as a duplicate of this bug. ***

-- 
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 48295] ProxyPassReverseCookiePath: Not changing path correctly.

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

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Eric Covener <co...@gmail.com> 2009-11-28 03:59:59 UTC ---
Post verbatim headers of the bug you're describing.

-- 
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