java.lang.IllegalArgumentException: User login size is incorrect (Between 3 and 255 characters)

Google Groups | Michael Huber | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Bug Report: Change in username size check breaks existing installation with two letter usernames

    Google Groups | 6 months ago | Michael Huber
    java.lang.IllegalArgumentException: User login size is incorrect (Between 3 and 255 characters)

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      User login size is incorrect (Between 3 and 255 characters)

      at org.sonar.api.internal.google.common.base.Preconditions.checkArgument()
    2. org.sonar.api
      UserIdentity$Builder.build
      1. org.sonar.api.internal.google.common.base.Preconditions.checkArgument(Preconditions.java:122)[sonar-plugin-api-6.0.jar:na]
      2. org.sonar.api.server.authentication.UserIdentity$Builder.validateLogin(UserIdentity.java:196)[sonar-plugin-api-6.0.jar:na]
      3. org.sonar.api.server.authentication.UserIdentity$Builder.build(UserIdentity.java:183)[sonar-plugin-api-6.0.jar:na]
      3 frames
    3. org.sonar.server
      LoginAction.doFilter
      1. org.sonar.server.authentication.RealmAuthenticator.synchronize(RealmAuthenticator.java:118)[sonar-server-6.0.jar:na]
      2. org.sonar.server.authentication.RealmAuthenticator.doAuthenticate(RealmAuthenticator.java:98)[sonar-server-6.0.jar:na]
      3. org.sonar.server.authentication.RealmAuthenticator.authenticate(RealmAuthenticator.java:83)[sonar-server-6.0.jar:na]
      4. org.sonar.server.authentication.CredentialsAuthenticator.authenticate(CredentialsAuthenticator.java:56)[sonar-server-6.0.jar:na]
      5. org.sonar.server.authentication.CredentialsAuthenticator.authenticate(CredentialsAuthenticator.java:45)[sonar-server-6.0.jar:na]
      6. org.sonar.server.authentication.ws.LoginAction.authenticate(LoginAction.java:91)[sonar-server-6.0.jar:na]
      7. org.sonar.server.authentication.ws.LoginAction.doFilter(LoginAction.java:76)[sonar-server-6.0.jar:na]
      7 frames