Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5589

Statement StringUtils.removeStart(handle, "/") is not assigned to the variable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: 4.5, 5.0
    • Fix Version/s: 4.5.15, 5.2.2
    • Component/s: None
    • Labels:
      None
    • Magnolia Release:
      4.5.15, 5.2.2

      Description

      info.magnolia.cms.beans.config.URI2RepositoryMapping
      Code in the genHandle(String) method:

      StringUtils.removeStart(handle, "/");
      

      is not assigned to the variable thus we get wrong uri.
      Example

      handlePrefix = "/test"
      uri = "/test/xxx"
      

      Then we get something like "/test//test/xxx"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jsimak Jaroslav Simak
                Reporter:
                jsimak Jaroslav Simak
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: