Received: (qmail 59155 invoked by uid 501); 8 Feb 2002 16:08:00 -0000 Message-Id: <20020208160800.59154.qmail@apache.org> Date: 8 Feb 2002 16:08:00 -0000 From: Brian Paulsen Reply-To: brian@thePaulsens.com To: submit@bugz.apache.org Subject: new proxy module not handling multiple cookies correctly X-Send-Pr-Version: 3.110 >Number: 9768 >Category: mod_proxy >Synopsis: new proxy module not handling multiple cookies correctly >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Fri Feb 08 08:10:00 PST 2002 >Closed-Date: Tue Feb 12 09:24:58 PST 2002 >Last-Modified: Tue Feb 12 09:24:58 PST 2002 >Originator: brian@thePaulsens.com >Release: 1.3.23 >Organization: >Environment: SunOS njfidev5 5.6 Generic_105181-28 sun4u sparc SUNW,Ultra-Enterprise >Description: I'm using the mod_proxy module to proxy to another server that sets multiple cookies and it appears that the proxy server is dumping all but the last cookie. My suspicion is that this is due to the fact that multiple cookies each get their own line in the set of HTTP Response headers. >How-To-Repeat: Have a server proxy to another server that can serve up CGI scripts. Then execute this script via CGI ----- begin script here ------ #!/usr/local/bin/perl5 -w sub printPage { print < Untitled Document EOF } printPage; ---- end of script ----- When I access the page via a browser, I see the following returned to me: Connection: close Date: Fri, 08 Feb 2002 15:59:28 GMT Transfer-Encoding: chunked Server: Apache/1.3.23 (Unix) mod_perl/1.26 Content-Type: text/html; charset=ISO-8859-1 Client-Date: Fri, 08 Feb 2002 15:59:30 GMT Client-Request-Num: 1 Client-Warning: LWP HTTP/1.1 support is experimental Foobar: test1, test2 Set-Cookie: cookie2=cookie2; domain=.lehman.com; path=/; expires=Mon, 06-Feb-2012 15:32:33 GMT Title: Untitled Document X-Cache: MISS from gemqa.lehman.com Untitled Document As you can see, the Foobar headers got combined into one line, but the Set-Cookie headers had some trouble. Only the last Set-Cookie header got returned to me. >Fix: >Release-Note: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: slive State-Changed-When: Tue Feb 12 09:24:58 PST 2002 State-Changed-Why: The patch at http://www.apache.org/~slive/proxy-patch.txt has been applied to fix this problem. Please try it out and report back if it does not fix your problem. It will be included in the next release. >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]