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

URL escaping PIDs for Relationships REST resource returns 404s

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Fedora 3.6, Fedora 3.6.1, Fedora 3.6.2
    • Fix Version/s: Fedora 3.7
    • Component/s: legacy - Fedora
    • Labels:
      None
    • Environment:
      OSX 10.6.8. Tomcat 7.0.37. Java 1.6.0.
    • Roadmap Theme:
      Interface: REST/HTTP

      Description

      This is essentially the same as issue FCREPO-1102.

      When 1102 was fixed in https://github.com/fcrepo/fcrepo/commit/2aa71e3db6f2aba5b66b22783594b035fbe0119d the VALID_PID_PART regular expression constant was added to FedoraObjectsResource and DatastreamResource, but the original (problematic) regular expression is still present in RelationshipResource.

      Currently it uses ([A-Za-z0-9]|-|\\.)+:(([A-Za-z0-9])|-|\\.|~|_|(%[0-9A-F]{2}))+ which matches "test:1234" but not "test:%3a1234" (see http://fiddle.re/pp0m ). The VALID_PID_PART regular expression correctly matches either PID.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                eddie Edwin Shin
                Reporter:
                swieton Mike Swieton
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: