From dev-return-25968-apmail-forrest-dev-archive=forrest.apache.org@forrest.apache.org Wed Nov 01 23:42:15 2006 Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 19117 invoked from network); 1 Nov 2006 23:42:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Nov 2006 23:42:15 -0000 Received: (qmail 88961 invoked by uid 500); 1 Nov 2006 23:42:26 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 88786 invoked by uid 500); 1 Nov 2006 23:42:26 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Delivered-To: moderator for dev@forrest.apache.org Received: (qmail 12268 invoked by uid 99); 1 Nov 2006 12:56:32 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) From: =?utf-8?q?B=C3=B8rre_Gaup?= To: dev@forrest.apache.org Subject: Re: HTML source files broken Date: Wed, 1 Nov 2006 13:55:46 +0100 User-Agent: KMail/1.9.4 References: <47D67264-BC61-4B9E-8C0F-DF9E84F88B54@mac.com> <200610310935.37842.boerre@skolelinux.no> <20061101031122.GB19097@igg.indexgeo.com.au> In-Reply-To: <20061101031122.GB19097@igg.indexgeo.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200611011355.47134.boerre@skolelinux.no> X-Virus-Scanned: : ok X-Scanned-By: MIMEDefang 2.56 on 129.242.5.252 X-Virus-Checked: Checked by ClamAV on apache.org Gask, sk=C3=A1bmam=C3=A1nu 1. b. 2006 04.11, David Crossley =C4=8D=C3=A1lii: > B??rre Gaup wrote: > > David Crossley ????lii: > > > B??rre Gaup wrote: > > > > > > > > > > The reason for this error was the we had hyphens (-) in the filenam= e. > > > > When we replaced the hyphens with underscores, everything worked li= ke > > > > a charm again. > > > > > > That is strange. I have a site that uses Dispatcher (pelt) and > > > an html source which has hyphens in the filename. I get no errors. > > > > I tried to experiment with the filename a bit. > > If I name the file "upload-corpus_file.html" it works, but if I call > > it "upload_corpus-file.html" forrest crashes. > > > > Could the error have something to do with the "-file" part? > > Try it with something other than "-file". The trouble might > be that the sitemaps have some match that operates on the > "-file" pattern. > > We already had a number of "reserved patterns". I hope that > we have not recently added more. > http://forrest.apache.org/faq.html#claimed_patterns > > > Could the error have something to do with the "-file" part? > > Try it with something other than "-file". The trouble might > be that the sitemaps have some match that operates on the > "-file" pattern. > > We already had a number of "reserved patterns". I hope that > we have not recently added more. > http://forrest.apache.org/faq.html#claimed_patterns > Ok, me and Sjur sat down to find out what really caused this error, and aft= er=20 a lot of trial and error, it is clear that the "corpus-" part of our filena= me=20 is the source of the error. If we rename the file upload_corp-file.html, it= =20 works! I also found some other problematic filenames of the same type yesterday: corpus-conversion-tech.xml -> corpus_conversion_tech.xml corpus-policy.jspwiki -> corpus_policy.jspwiki corpus-plan.xml -> corpus_plan.xml =46urther observations: Dispatcher gives the following error message, even though the file does not= =20 exist! : =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Internal Server Error Message: null Description: No details available. Sender: org.apache.cocoon.servlet.CocoonServlet Source: Cocoon Servlet Request URI upload/upload_corpus-file.html cause dispatcherError: 500 - Internal server error The contract "siteinfo-meta-navigation" has thrown thrown an exception by=20 resolving raw data from "cocoon://upload/upload_corpus-file.navigation.xml". dispatcherErrorStack: org.apache.excalibur.source.SourceNotFoundException: Exception during=20 processing of cocoon://upload/upload_corpus-file.navigation.xml request-uri /upload/upload_corpus-file.html Apache Cocoon 2.2.0-dev =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The file that DOES exist is upload/upload_corpus_file.html (note the=20 underscore instead of the hyphen) When we try to call a file with a completely non-existent name (e.g.=20 upload/test-file.html - there is no such file), we get the following=20 (expected) error message: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Internal Server Error Message: null Description: No details available. Sender: org.apache.cocoon.servlet.CocoonServlet Source: Cocoon Servlet Request URI upload/test-file.html cause /Users/sjur/Documents/i18n/sd/src/documentation/content/xdocs/upload/test-f= ile.xml=20 (No such file or directory) request-uri /upload/test-file.html Apache Cocoon 2.2.0-dev =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =2D-=20 B=C3=B8rre Gaup