[ http://jira.magnolia-cms.com/browse/MAGNOLIA-2659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gregory Joseph updated MAGNOLIA-2659: ------------------------------------- Fix Version/s: 4.1 Added a testcase, and a commented out one that shows this fails with more than 9 groups. I have a fix locally, but more tests would help ensuring corner cases won't fail. > info.magnolia.cms.beans.config.RegexpVirtualURIMapping error with high number > of groups > --------------------------------------------------------------------------------------- > > Key: MAGNOLIA-2659 > URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2659 > Project: Magnolia > Issue Type: Bug > Components: core > Reporter: Manuel Molaschi > Assignee: Gregory Joseph > Fix For: 4.1 > > > I found that using a regexp with a high number of groups (>10) in a > RegexpVirtualURIMapping can cause a problem when replacing group instances > with matches. > if you change > int matcherCount = matcher.groupCount(); > for (int j = 0; j <= matcherCount; j++) { > in > int matcherCount = matcher.groupCount(); > for (int j = matcherCount; j >= 0; j--){ > it works. > This problem happens because the procedure replaces (in example) all "$2" > occurrences making impossible to find (and replace) the "$20" -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia-cms.com/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com> ----------------------------------------------------------------