Uploaded image for project: 'Atlassian Cloud'
  1. Atlassian Cloud
  2. CLOUD-5613

Stack trace occurs when trying to create external user with spaces in username on Google Apps-enabled instance

    XMLWordPrintable

Details

    Description

      Usernames in JIRA have to be lowercase, but they can contain spaces. If you try to create an external (non-Google) user on a Google Apps-enabled instance that has a space in the username, it blows up with a stack trace:

      java.lang.IllegalStateException: java.lang.RuntimeException: com.google.gdata.client.authn.oauth.OAuthException: java.net.URISyntaxException: Illegal character in path at index 68: https://apps-apis.google.com/a/feeds/<google apps domain>/user/2.0/<username>
      	at com.atlassian.agmp.openid.users.mgmt.jira.UserServiceImpl.userExistsInGoogle(UserServiceImpl.java:529)
      	at com.atlassian.agmp.integration.jira.action.AddUserInterceptor.isGoogleUser(AddUserInterceptor.java:72)
      	at com.atlassian.agmp.integration.jira.action.AddUserInterceptor.interceptDoExecute(AddUserInterceptor.java:43)
      	at com.atlassian.peace.jira.ActionPeacekeeper.intercept(ActionPeacekeeper.java:46)
      	at webwork.interceptor.NestedInterceptorChain.proceed(NestedInterceptorChain.java:27)
      	at webwork.interceptor.ChainedInterceptor.intercept(ChainedInterceptor.java:16)
      	at webwork.interceptor.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:35)
      	at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:205)
      	at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:143)
      	at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:152)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            nmason Nick Mason
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: