Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Delivered-To: moderator for cocoon-dev@xml.apache.org Received: (qmail 8404 invoked from network); 4 Oct 2000 17:34:12 -0000 Received: from tirin.openworld.co.uk (194.207.107.233) by locus.apache.org with SMTP; 4 Oct 2000 17:34:12 -0000 Received: from hyperfluid.com (localhost [127.0.0.1]) by tirin.openworld.co.uk (8.9.3/8.9.3) with ESMTP id SAA30172 for ; Wed, 4 Oct 2000 18:33:45 +0100 Sender: dberastau@tirin.openworld.co.uk Message-ID: <39DB69F9.10774B15@hyperfluid.com> Date: Wed, 04 Oct 2000 18:33:45 +0100 From: dima X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.16 i586) X-Accept-Language: en MIME-Version: 1.0 To: cocoon-dev@xml.apache.org Subject: [C2] minor bug in CocoonServlet.java Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hi everyone, recently built Cocoon 2.0a3 from CVS and discovered a little bug this.cocoon.process (env) returned false because in org.apache.cocoon.Cocoon.java because of a little bug in org.apache.cocoon.servlet.CocoonServlet.java (:276): _________________________________________________________________ // We got it... Process the request String uri = req.getServletPath(); String pathInfo = req.getPathInfo(); if (pathInfo != null) uri += "/" + pathInfo; <== here if (!uri.equals("")) { try { if (uri.charAt(0) == '/') { uri = uri.substring(1); } and it should be : if (pathInfo != null) uri += pathInfo; when I sent req.getServletPath () and req.getPathInfo () to debug output req.getServletPath () returned null and req.getPathInfo () return "/" so the original "if (pathInfo != null) uri += "/" + pathInfo;" was producing a path with "//" in it. hope this helps, cheers, dima