cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5791] - RegExp Matcher always matches "" as positive!
Date Thu, 10 Jan 2002 21:05:23 GMT
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!





------- Additional Comments From vgritsenko@apache.org  2002-01-10 13:05 -------

May be there is a need to protect against the infinite loops, but not by 
disabling "". The next logical thing would be to disable "**" in wildcard 
matcher. If someone exlusively uses regexp matcher, he would use regexp "" 
instead of wildcard "**".

Also, there are numerous ways to create infinite loops by other means, without 
regexp "" and wildcard "**":

<map:match type="wildcard" uri="x">
  <map:redirect-to href="y"/>
</map:match>
<map:match type="wildcard" uri="y">
  <map:redirect-to href="x"/>
</map:match>

So the bug as it formulated in the heading is (IMHO) invalid, but other issues 
could be raised as bugs: like what patterns to disable and from what matchers; 
or how to protect from infinite loops.

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


Mime
View raw message