-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 7.0.0
-
Component/s: Core features
-
None
-
Severity 3 - Minor
Issue Summary
Crowd allows to persist base URLs both with and without a trailing slash, as opposed to other Atlassian products. SAL's ApplicationProperties will then directly return the persisted base URL value. This behavior is not in-line with other Atlassian products which typically remove the trailing slash from the base URL - either before persisting or before returning the API response. As a result cross-product plugins may rely on the assumption that the base url will always lack a trailing slash.
Steps to Reproduce
- Configure a base URL with a trailing slash in Crowd
- Retrieve the base URL with `com.atlassian.sal.api.ApplicationProperties#getBaseUrl(UrlMode.CANONICAL)`
Expected Results
Base URL is returned without a trailing slash.
Actual Results
Base URL is returned with a trailing slash.
Workaround
Save the base URL without a trailing slash.