Persisting a base URL with trailing slash is possible in Crowd

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 7.1.0
    • 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

      1. Configure a base URL with a trailing slash in Crowd
      2. 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.

            Assignee:
            Unassigned
            Reporter:
            Patryk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: