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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 4.5.15, 5.2.2
    • 4.5, 5.0
    • None
    • None

    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"

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD