-
Bug
-
Resolution: Fixed
-
Medium
-
5.7.0
-
5
-
Severity 2 - Major
-
steps to reproduce
- By default bamboo does not allow the creation of users with spaces in their usernames. Now if the user is created via LDAP, or crowd or JIRA, and authentication delegated to one of the mentioned methods, then the users are accepted
- In this particular test, I created a user with space in JIRA called "user space". This user can log in to both stash and bamboo and view their profiles. In Stash, the user can even have access to the repos.
- Now create an application link between bamboo and Stash
- Log in to bamboo as user "user space" and try to create a linked repos. It fails as per the screenshot below when we try to choose he repository. The following also appears in the logs:
2014-11-24 23:29:56,338 ERROR [http-bio-1057-exec-7] [ThrowableExceptionMapper] Uncaught exception thrown by REST service: Illegal character in query at index 91: http://localhost:7340/stash3 40/rest/api/1.0/repos?start=0&limit=10&xoauth_requestor_id=user space java.lang.IllegalArgumentException: Illegal character in query at index 91: http://localhost:7340/stash340/rest/api/1.0/repos?start=0&limit=10&xoauth_requestor_id=user space at java.net.URI.create(URI.java:859) at com.atlassian.sal.core.net.HttpClientProtocolConfig.changeHostConfigurationProtocol(HttpClientProtocolConfig.java:43) at com.atlassian.sal.core.net.HttpClientProtocolConfig.configureProtocol(HttpClientProtocolConfig.java:20) at com.atlassian.sal.core.net.HttpClientRequest.configureProtocol(HttpClientRequest.java:532) at com.atlassian.sal.core.net.HttpClientRequest.setUrl(HttpClientRequest.java:135) at com.atlassian.sal.core.net.HttpClientRequest.setUrl(HttpClientRequest.java:71) at com.atlassian.plugins.rest.module.jersey.JerseyRequest.setUrl(JerseyRequest.java:57) at com.atlassian.plugins.rest.module.jersey.JerseyRequest.setUrl(JerseyRequest.java:21) at com.atlassian.applinks.core.auth.ApplicationLinkRequestAdaptor.setUrl(ApplicationLinkRequestAdaptor.java:134) . . . . . Caused by: java.net.URISyntaxException: Illegal character in query at index 91: http://localhost:7340/stash340/rest/api/1.0/repos?start=0&limit=10&xoauth_requestor_id=user space at java.net.URI$Parser.fail(URI.java:2829) at java.net.URI$Parser.checkChars(URI.java:3002) at java.net.URI$Parser.parseHierarchical(URI.java:3092) at java.net.URI$Parser.parse(URI.java:3034) at java.net.URI.<init>(URI.java:595) at java.net.URI.create(URI.java:857)
- relates to
-
JRACLOUD-41578 JIRA Agile and Service Desk pages constantly refresh for users with space in a username
- Closed
-
JRASERVER-41578 JIRA Agile and Service Desk pages constantly refresh for users with space in a username
- Closed
-
JRASERVER-37508 JIRA Allows The Creation of Usernames With Whitespace
- Gathering Impact
- was cloned as
-
BDEV-6989 Loading...
(1 was cloned as)