Uploaded image for project: 'UY'
  1. UY
  2. UY-871

Invalid email causes 500 when querying admin endpoint.

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: v2.8.2
    • Labels:
      None

      Description

       

      2019-04-04T18:36:10,714 [qtp2090630781-56] WARN org.eclipse.jetty.server.HttpChannel: /rest-admin/v1/resolve/email/r
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at java.lang.String.substring(String.java:1967) ~[?:1.8.0_201]
      at pl.edu.icm.unity.types.basic.VerifiableEmail.removeTags(VerifiableEmail.java:119) ~[unity-types-api-2.7.5.jar:?]
      at pl.edu.icm.unity.types.basic.VerifiableEmail.getComparableValue(VerifiableEmail.java:92) ~[unity-types-api-2.7.5.jar:?]
      at pl.edu.icm.unity.stdext.identity.EmailIdentity.getComparableValue(EmailIdentity.java:87) ~[unity-server-std-plugins-2.7.5.jar:?]
      at pl.edu.icm.unity.engine.identity.EntityResolverImpl.getFullIdentity(EntityResolverImpl.java:69) ~[unity-server-engine-2.7.5.jar:?]
      at pl.edu.icm.unity.engine.identity.EntityResolverImpl.getEntityId(EntityResolverImpl.java:46) ~[unity-server-engine-2.7.5.jar:?]
      at pl.edu.icm.unity.engine.identity.EntityResolverImpl.getEntityId(EntityResolverImpl.java:53) ~[unity-server-engine-2.7.5.jar:?]
      at sun.reflect.GeneratedMethodAccessor104.invoke(Unknown Source) ~[?:?]
      

       

       

        Attachments

          Activity

            People

            • Assignee:
              golbi Krzysztof Benedyczak
              Reporter:
              krycha Roman Krysinski
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: