1. Sebastian Sebastian
  2. scm-manager
  3. Issues

Issues

Issue #441 resolved

authormapping-plugin fails when \ character in username

hyltonpeimer
created an issue

06:52:00.969 [qtp600987386-106006] INFO sonia.scm.web.security.DefaultAdministrationContext - user pavel executes sonia.scm.authormapping.MappingPrivilegedAction as admin 06:52:00.969 [qtp600987386-106006] ERROR sonia.scm.activity.collector.AbstractChangesetCollector - could retrieve changesets for repository studio-ng-dev java.util.regex.PatternSyntaxException: Unknown character property name {a} near index 16 (?i).aternity\pavel. ^ at java.util.regex.Pattern.error(Unknown Source) ~[na:1.6.0_20] at java.util.regex.Pattern.charPropertyNodeFor(Unknown Source) ~[na:1.6.0_20] at java.util.regex.Pattern.family(Unknown Source) ~[na:1.6.0_20] at java.util.regex.Pattern.sequence(Unknown Source) ~[na:1.6.0_20] at java.util.regex.Pattern.expr(Unknown Source) ~[na:1.6.0_20] at java.util.regex.Pattern.compile(Unknown Source) ~[na:1.6.0_20] at java.util.regex.Pattern.<init>(Unknown Source) ~[na:1.6.0_20] at java.util.regex.Pattern.compile(Unknown Source) ~[na:1.6.0_20] at java.util.regex.Pattern.matches(Unknown Source) ~[na:1.6.0_20] at java.lang.String.matches(Unknown Source) ~[na:1.6.0_20] at sonia.scm.search.SearchUtil.matchesOne(SearchUtil.java:117) ~[scm-core-1.33.jar:na] at sonia.scm.user.DefaultUserManager$1.accept(DefaultUserManager.java:352) ~[classes/:na] at sonia.scm.user.DefaultUserManager$1.accept(DefaultUserManager.java:346) ~[classes/:na] at sonia.scm.search.SearchUtil.search(SearchUtil.java:161) ~[scm-core-1.33.jar:na] at sonia.scm.user.DefaultUserManager.search(DefaultUserManager.java:344) ~[classes/:na] at sonia.scm.authormapping.MappingPrivilegedAction.findUser(MappingPrivilegedAction.java:124) ~[scm-authormapping-plugin-1.2.jar:na] at sonia.scm.authormapping.MappingPrivilegedAction.run(MappingPrivilegedAction.java:95) ~[scm-authormapping-plugin-1.2.jar:na] at sonia.scm.web.security.DefaultAdministrationContext.doRunAsInWebSessionContext(DefaultAdministrationContext.java:262) ~[classes/:na] at sonia.scm.web.security.DefaultAdministrationContext.runAsAdmin(DefaultAdministrationContext.java:138) ~[classes/:na] at sonia.scm.authormapping.MappingResolver.getPersonFromDatabase(MappingResolver.java:146) ~[scm-authormapping-plugin-1.2.jar:na] at sonia.scm.authormapping.MappingResolver.resolve(MappingResolver.java:100) ~[scm-authormapping-plugin-1.2.jar:na] at sonia.scm.authormapping.MappingPreProcessor.resolve(MappingPreProcessor.java:221) ~[scm-authormapping-plugin-1.2.jar:na] at sonia.scm.authormapping.MappingPreProcessor.process(MappingPreProcessor.java:106) ~[scm-authormapping-plugin-1.2.jar:na] at sonia.scm.repository.PreProcessorUtil$ChangesetPreProcessorWrapper.process(PreProcessorUtil.java:355) ~[scm-core-1.33.jar:na] at sonia.scm.repository.PreProcessorUtil$ChangesetPreProcessorWrapper.process(PreProcessorUtil.java:329) ~[scm-core-1.33.jar:na] at sonia.scm.repository.PreProcessorUtil$PreProcessorHandler.callPreProcessorFactories(PreProcessorUtil.java:520) ~[scm-core-1.33.jar:na] at sonia.scm.repository.PreProcessorUtil.prepareForReturn(PreProcessorUtil.java:262) ~[scm-core-1.33.jar:na] at sonia.scm.repository.api.LogCommandBuilder.getChangesets(LogCommandBuilder.java:276) ~[scm-core-1.33.jar:na] at sonia.scm.activity.collector.CombinedBranchCollector.collectChangesets(CombinedBranchCollector.java:77) ~[scm-activity-plugin-1.9.jar:na] at sonia.scm.activity.collector.AbstractChangesetCollector.collectChangesets(AbstractChangesetCollector.java:109) ~[scm-activity-plugin-1.9.jar:na] at sonia.scm.activity.ActivityManager.appendActivities(ActivityManager.java:178) [scm-activity-plugin-1.9.jar:na] at sonia.scm.activity.ActivityManager.getActivities(ActivityManager.java:199) [scm-activity-plugin-1.9.jar:na] at sonia.scm.activity.ActivityManager.getLatestActivity(ActivityManager.java:148) [scm-activity-plugin-1.9.jar:na] at sonia.scm.activity.ActivityResource.getLatestActivity(ActivityResource.java:84) [scm-activity-plugin-1.9.jar:na] at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source) ~[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.6.0_20] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.6.0_20] at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) [jersey-bundle-1.17.1.jar:1.17.1]

Comments (6)

  1. hyltonpeimer reporter

    I've installed this version. I can't confirm the problem is solved because by disabling the author mapping plugin, we were able to push the problematic commit. From looking at your code change it seems like a safe fix, and you should close the issue.

    I am still having another problem which I experienced some time ago: I previously uninstalled the scm-authormapping-plugin. Now I did "install" and restarted the server, but the "install" action still appears. Should I reopen the previous issue?

  2. Log in to comment