enonic / lib-admin-ui

Enonic XP Administration UI.
GNU General Public License v3.0
5 stars 5 forks source link

Create Issue Dialog - Exception occurs, when assigned user's name contains one char #400

Closed sgauruseu closed 6 years ago

sgauruseu commented 6 years ago
  1. Go to Users and add user with name 'u', Add Administrator role him
  2. Go to CS , click on "Publishing Issues" button, then click on Create Issue button(No items to publish)
  3. Type a title and select the user in Assignees
  4. Press the Create Issue button

Bug: exception occurs

user-1

12:34:17.592 ERROR c.e.x.j.i.e.JsonExceptionMapper - String index out of range: 2 java.lang.StringIndexOutOfBoundsException: String index out of range: 2 at java.lang.String.substring(String.java:1963) at com.enonic.xp.admin.impl.rest.resource.issue.IssueMailMessageGenerator.makeShortName(IssueMailMessageGenerator.java:232) at com.enonic.xp.admin.impl.rest.resource.issue.IssueMailMessageGenerator.generateAppoverHtml(IssueMailMessageGenerator.java:215) at com.enonic.xp.admin.impl.rest.resource.issue.IssueMailMessageGenerator.lambda$generateApproversHtml$3(IssueMailMessageGenerator.java:209) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) at com.enonic.xp.admin.impl.rest.resource.issue.IssueMailMessageGenerator.generateApproversHtml(IssueMailMessageGenerator.java:209) at com.enonic.xp.admin.impl.rest.resource.issue.IssueMailMessageGenerator.generateMessageBody(IssueMailMessageGenerator.java:100) at com.enonic.xp.admin.impl.rest.resource.issue.IssueMailMessageGenerator.generateMessage(IssueMailMessageGenerator.java:45) at com.enonic.xp.admin.impl.rest.resource.issue.IssueNotificationsSenderImpl.notifyIssueCreated(IssueNotificationsSenderImpl.java:42) at com.enonic.xp.admin.impl.rest.resource.issue.IssueResource.create(IssueResource.java:124) at sun.reflect.GeneratedMethodAccessor346.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:137) at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:296)

pmi commented 6 years ago

Issue moved to enonic/xp #6144 via ZenHub