modified WIKIWORD_REGEX in JSPWikiMarkupParser causes a lot JUNIT tests to fail
with an NPE
-------------------------------------------------------------------------------------------
Key: JSPWIKI-283
URL: https://issues.apache.org/jira/browse/JSPWIKI-283
Project: JSPWiki
Issue Type: Bug
Components: Core & storage
Affects Versions: 2.7.x
Environment: Ubuntu Linux 7.04
JSPWiki 2.7.0-svn-34
Reporter: Harry Metske
Priority: Minor
While running JUNIT tests I notice several 787 errors, the overall success rate
drops from 98 % to 26% .
Digging a little further brings me to a modified JSPWikiMarkupParser. The
revision comment says that only String(Buffer) has been replaced by
StringBuilder.
However, I notice another change in the static final String WIKIWORD_REGEX
new: "(^|<|(http://|https://|mailto:)([A-Za-z0-9_/[EMAIL PROTECTED]&;~%]+))";
old:
"(^|[[:^alnum:]]+)([[:upper:]]+[[:lower:]]+[[:upper:]]+[[:alnum:]]*|(http://|https://|mailto:)([A-Za-z0-9_/[EMAIL
PROTECTED]&;~%]+))";
Reverting this change gives me the old better JUNIT test results again.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.