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

UUIDLink gets incorrect repository using URI2Repository mappings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.5 RC1
    • 3.1 M3
    • core
    • None
    • N/A

    Description

      Line 108:

      repository = URI2RepositoryManager.getInstance().getRepository(handle);

      Should pass in the link variable and not the handle. The reason being that the handle is stripped of any possible URI prefix that is mapped under /server/URI2RepositoryMapping so when the getRepository() method is called it is looking for a repository mapping on a string that already had its URI prefix for repository mapping removed. Because of that the UUIDLink that is generated will always point to the website repository.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              pbaerfuss Philipp Bärfuss
              tomjnsn Tom Jensen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD

                  Time Tracking

                    Estimated:
                    Original Estimate - 5m
                    5m
                    Remaining:
                    Remaining Estimate - 5m
                    5m
                    Logged:
                    Time Spent - Not Specified
                    Not Specified