[
http://jira.magnolia-cms.com/browse/MAGNOLIA-2659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=22859#action_22859
]
Grégory Joseph edited comment on MAGNOLIA-2659 at 5/29/09 4:06 PM:
-------------------------------------------------------------------
Well, patch applied; feel free to pitch in with more tests if this fails or if
some corner case needs to be tested !
Thanks for the report !
was (Author: gjoseph):
Well, patch applied; feel free to pitch in with more tests if this fails or
if some corner case needs to be tested !
> 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]>
----------------------------------------------------------------