Uploaded image for project: 'Fedora Repository Project'
  1. Fedora Repository Project
  2. FCREPO-2341

UI does not parse Link headers correctly when redirecting

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Fedora 4.7.0
    • Fix Version/s: Fedora 4.7.4
    • Component/s: f4-core
    • Labels:
    • Environment:
      Chrome browser
    • Sprint:
      Sprint 2016 - 18, Sprint 2017 - 19

      Description

      When testing the API-X demo[1] depositing binaries via the Fedora html UI, sometimes the user is redirected to the wrong place. Instead of /fcr:metadata, the user is sometimes directed to the API-X service document.

      This appears to be due to the UI parsing link headers incorrectly. If there are multiple link relations, e.g.:
      Link: </otherPlace>; rel="anOtherRel"
      Link: </fcr:metadata>; rel="describedby"
      .. the net effect is that the UI picks a random link regardless of relation.

        Attachments

          Activity

            People

            • Assignee:
              esm Elliot Metsger
              Reporter:
              birkland Aaron Birkland
              Reviewer:
              Andrew Woods
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: