EncodeURLTransformer can get a StackOverflow in jakarta regexp
--------------------------------------------------------------
Key: COCOON-1742
URL: http://issues.apache.org/jira/browse/COCOON-1742
Project: Cocoon
Type: Bug
Components: * Cocoon Core
Versions: 2.1.8, 2.2-dev (Current SVN)
Reporter: Ralph Goers
Assigned to: Ralph Goers
EncodeURLTransformer uses jakarta regexp and calls RE.match(). This method ends
up calling matchNode() which recursively calls itself. This is slow and has the
potential of causing a StackOverFlowException .Numerous issues have been opened
on jakarta regexp regarding this but there are no plans to address this. I
have run tests that show that regexp is much slower than the JDK regular
expressions and also slower than ORO.
The fix for this will be to modify the EncodeURLTransformer in 2.2-dev to use
the JDK regular expressions. Since the JDK regular expressions are only
available in JDK 1.4 they cannot directly be used in the 2.1 branch. Most
likely Oro will be used instead.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira