incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harry Metske (JIRA)" <j...@apache.org>
Subject [jira] Created: (JSPWIKI-283) modified WIKIWORD_REGEX in JSPWikiMarkupParser causes a lot JUNIT tests to fail with an NPE
Date Sun, 08 Jun 2008 12:11:44 GMT
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_/\\.\\+\\?\\#\\-\\@=&;~%]+))";
old:  "(^|[[:^alnum:]]+)([[:upper:]]+[[:lower:]]+[[:upper:]]+[[:alnum:]]*|(http://|https://|mailto:)([A-Za-z0-9_/\\.\\+\\?\\#\\-\\@=&;~%]+))";

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.


Mime
View raw message