-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
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"
Acceptance criteria