Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 82502 invoked from network); 3 Jan 2004 18:01:27 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 3 Jan 2004 18:01:27 -0000 Received: (qmail 12113 invoked by uid 500); 3 Jan 2004 18:01:18 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 11876 invoked by uid 500); 3 Jan 2004 18:01:16 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 11856 invoked from network); 3 Jan 2004 18:01:16 -0000 Received: from unknown (HELO pulse.betaversion.org) (217.158.110.65) by daedalus.apache.org with SMTP; 3 Jan 2004 18:01:16 -0000 Received: (qmail 18172 invoked from network); 3 Jan 2004 18:01:18 -0000 Received: from unknown (HELO ?192.168.2.41?) (stefano@80.105.91.155) by pulse.betaversion.org with SMTP; 3 Jan 2004 18:01:18 -0000 Mime-Version: 1.0 (Apple Message framework v609) Content-Transfer-Encoding: 7bit Message-Id: <26AA165A-3E17-11D8-A301-000393D2CB02@apache.org> Content-Type: text/plain; charset=US-ASCII; format=flowed To: Cocoon From: Stefano Mazzocchi Subject: [Bug?] absolute redirection in flow appears not to be proxy safe Date: Sat, 3 Jan 2004 19:03:36 +0100 X-Mailer: Apple Mail (2.609) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I came across a very weird problem today. I had two cocoon applications that were once running in different JVM instances, both mapped to / and I moved them into a single Jetty instance mapped on /A and /B (for simplicity). Then I modified the ProxyPass settings and used the jetty web.xml trick to change the cookie path. Now, the interesting thing was that while /A performed just like before, /B had a wierd problem: "redirects" were absolute to the "webapp server", not to the "web server". Both apps had the same exact version of cocoon (compiled this morning). After careful examination and extensive protocol dump, I was able to understand that while /A used cocoon.redirectTo(../../index); /B used cocoon.redirectTo(/index); and both turn up to the in the same position, but while the first actually works (the redirect is "remapped" to the original Proxy URL, not to the appserver one which is obviously firewalled), the second doesn't do remapping and the web application fails because it tries to connect to the webapp directly [actually it's even worse, because it tries to connect to the ProxyPass setting, which are http://localhost:8000/ in my case, so it tries to connect to *your* machine!] The interesting thing is that this worked perfectly in the past, when both were mapped to /, but I can't tell what broke since I moved them *and* change the version of cocoon at the same time. Did anybody experience a similar behavior? -- Stefano.