[
http://jira.magnolia-cms.com/browse/MAGNOLIA-2659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=22860#action_22860
]
Hudson CI server commented on MAGNOLIA-2659:
--------------------------------------------
Integrated in !http://hudson.magnolia-cms.com/nocacheImages/16x16/blue.gif!
[magnolia_main-trunk
#849|http://hudson.magnolia-cms.com/job/magnolia_main-trunk/849/]
now supports more than 9 tokens in regex
> 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: Grégory Joseph
> Fix For: 4.1 RC1
>
> 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: <[email protected]>
----------------------------------------------------------------