Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 40509 invoked from network); 5 Dec 2007 09:22:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Dec 2007 09:22:15 -0000 Received: (qmail 13820 invoked by uid 500); 5 Dec 2007 09:22:03 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 13749 invoked by uid 500); 5 Dec 2007 09:22:02 -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 List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 13738 invoked by uid 99); 5 Dec 2007 09:22:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2007 01:22:02 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2007 09:22:04 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1CB4E714211 for ; Wed, 5 Dec 2007 01:21:43 -0800 (PST) Message-ID: <702905.1196846503098.JavaMail.jira@brutus> Date: Wed, 5 Dec 2007 01:21:43 -0800 (PST) From: "Andreas Hartmann (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Commented: (COCOON-1990) Redirect bug WITHIN sub sitemap WHEN using uri-prefix in map:mount In-Reply-To: <6022468.1169914129104.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COCOON-1990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12548602 ] Andreas Hartmann commented on COCOON-1990: ------------------------------------------ Here's the stack trace: java.io.FileNotFoundException: /Users/nobby/apache/lenya/clean/trunk/src/modules-core/usecase/global-sitemap.xmap (No such file or directory) full exception chain stacktraceorg.apache.cocoon.ProcessingException: Sitemap: error calling function 'executeUsecase' at - file:///Users/nobby/apache/lenya/clean/trunk/src/modules-core/usecase/usecase.xmap:104:45 at - file:///Users/nobby/apache/lenya/clean/trunk/build/lenya/webapp/lenya/usecase.xmap:55:131 at - file:///Users/nobby/apache/lenya/clean/trunk/build/lenya/webapp/global-sitemap.xmap:288:105 at - file:///Users/nobby/apache/lenya/clean/trunk/build/lenya/webapp/sitemap.xmap:712:106 > Redirect bug WITHIN sub sitemap WHEN using uri-prefix in map:mount > ------------------------------------------------------------------ > > Key: COCOON-1990 > URL: https://issues.apache.org/jira/browse/COCOON-1990 > Project: Cocoon > Issue Type: Bug > Components: * Cocoon Core > Affects Versions: 2.1.10 > Reporter: Robert Hoffmann > Assignee: Alfred Nathaniel > Fix For: 2.1.11-dev (Current SVN) > > > Hi cocoon developers, > I found the following problem with redirects within sub-sitemaps WHEN using the uri-prefix in map:mount... > Test case: > 1) Sitemaps: > Root sitemap >> > ... > > > > > ...<< > Sub sitemap >> > ... > > > > > > > ...<< > 2) NOW: When you request "http://testserver/cocoon/test/A.html"... > you should get redirected to B.html WITHIN the sub sitemap (that's why we use 'cocoon:/B.html' and not 'cocoon://B.html')... > BUT the redirect does NOT work correctly, hence we will not get the google-site which would be the correct result. > 3) The cocoon.log says: http-11080-Processor23/CocoonServlet: No pipeline matched request: test/B.html !!! > [So it seems to me that the uri-prefix from the sub-sitemap mount is added in the this redirect, which might be why it does not match then within the sub-sitemap.] > 3) Important: This only goes wrong when using the uri-prefix[-remove] attribute in map:mount > I hope this detailed test case will be helpful to one of the cocoon gurus... I really would hate if I had to use redirects to the ROOT sitemap (that's not the idea of sub sitemaps). > Many thanks!!! > Robert > PS: Cocoon really rocks! > -- > Have you tried iHOP yet? http://www.ihop-net.org/UniPub/iHOP/ -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.