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

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

XMLWordPrintable

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

      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"

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD