Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-26132

REST API /rest/auth/1/session fails with HTTP 500 if user names have spaces

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 5.0
    • 4.3.4
    • REST API

    Description

      In our system all of the user names are of the form "first last".

      If I call http://jira.our-company.com/rest/auth/1/session
      then it returns HTTP 500
      and I see this in the logs, "Caused by: java.net.URISyntaxException: Illegal character in path at index 47: "

      2011-11-02 11:35:51,036 http-80-13 ERROR jeff kirby 695x1559x1 1t0z3p3 148.92.245.17 /rest/auth/1/session [jira.rest.exception.ExceptionInterceptor] Returning internal server error in response
      java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      ...
      	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      	at java.lang.Thread.run(Thread.java:619)
      Caused by: java.net.URISyntaxException: Illegal character in path at index 47: http://jira.our-company.com/rest/api/latest/user/jeff kirby
      	at java.net.URI$Parser.fail(URI.java:2809)
      	at java.net.URI$Parser.checkChars(URI.java:2982)
      	at java.net.URI$Parser.parseHierarchical(URI.java:3066)
      	at java.net.URI$Parser.parse(URI.java:3014)
      	at java.net.URI.<init>(URI.java:578)
      	at com.atlassian.jira.rest.auth.Login.currentUser(Login.java:76)
      	... 142 more
      

      Attachments

        Activity

          People

            mquail Matt Quail (Inactive)
            adc6ee404f6d Jeff Kirby
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: