You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2002/01/10 20:27:02 UTC

DO NOT REPLY [Bug 5791] New: - RegExp Matcher always matches "" as positive!

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5791>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5791

RegExp Matcher always matches "" as positive!

           Summary: RegExp Matcher always matches "" as positive!
           Product: Cocoon 2
           Version: 2.1alpha CVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: core
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: bloritsch@apache.org


Unlike the WildcardMatcher, when you have a sitemap pipeline like this:

<map:match uri="">
  <map:redirect-to href="index.html"/>
</map:match>

the RegExpURIMatcher always matches this in the positive.  If you use this
construct in your Sitemap, you will never get your expected result and the
first request will throw Cocoon into a virtually infinite loop.

The _only_ way out of the infinite loop is the StackOverflowException thrown
by the JVM.  I believe the exception is only thrown in the command line
invocation due to the fact that it keeps wrapping Requests ad infinitum.

The expected result of matching "" should be when you match the root URI only.

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org