[ http://jira.magnolia-cms.com/browse/MAGNOLIA-2659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gregory Joseph updated MAGNOLIA-2659: ------------------------------------- Attachment: MAGNOLIA-2659.patch > 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 > > Attachments: MAGNOLIA-2659.patch > > > 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> ----------------------------------------------------------------