Details
-
Bug
-
Resolution: Fixed
-
Medium
-
2.2.5
Description
This causes JIRA to fail when connecting to crowd servers at URLs like:
See attached screenshot.
This is because we are trying to correct old URLs that contained services at the end of the path.
The first issue is that we should only remove this string from the path at the end of it, if it is present. We can use StringUtils.removeEnd to achieve this. The bug is at com.atlassian.crowd.service.client.ClientPropertiesImpl.generateBaseUrl line 140.
The second issue is that it's really questionable to do this sort of input validation in this layer of the code, this sort of validation should be done in consumers of this code (i.e. JIRA embedded crowd admin) as this is user input validation. In this layer if the url we should just assert on having a valid URL.
Attachments
Issue Links
- blocks
-
JRASERVER-24554 Upgrade task doesn't like Crowd servers with "services" in the hostname
- Closed
- is duplicated by
-
CWD-2446 Remote Crowd directory connection URL cannot contain "/services"
- Closed
- is related to
-
CWD-4363 Only trim /services from the end of crowd.server.url
- Closed