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

HTML UI javascript can't tell RDFSource versions from NonRdfSource versions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: Fedora 4.7.3
    • Fix Version/s: None
    • Component/s: f4-core
    • Labels:

      Description

      In the HTML UI browsing to an RDFSource object's versions (http://localhost:8080/rest/apple_box/carton_of_apples/fcr:versions) results in being redirected to non-existant fcr:metadata (http://localhost:8080/rest/apple_box/carton_of_apples/fcr:versions/fcr:metadata) because the original URI does not return a Link Header (which is how we determine a RDFSource).
      https://github.com/fcrepo4/fcrepo4/blob/master/fcrepo-http-api/src/main/resources/views/common.js#L96

      Possibly twitchy solution is to not redirect if the URI ends in "/fcr:*"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                whikloj Jared Whiklo
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: