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

addRelationships REST API regression in fcrepo 3.6

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: Fedora 3.6.1, Fedora 3.6.2
    • Fix Version/s: Fedora 3.7
    • Component/s: legacy - Fedora
    • Labels:
      None
    • Roadmap Theme:
      Interface: REST/HTTP

      Description

      In Fedora 3.6.1 and 3.6.2 (haven't tried 3.6.0..), the addRelationships endpoint is broken. When you send a POST request (that worked in Fedora 3.5), you get a 404:

      opening connection to localhost:8983...
      opened
      <- "POST /fedora/objects/transactions%3A1/relationships/new?subject=transactions%3A1&predicate=uri%3Aasdf&object=fedora%3Aobject HTTP/1.1\r\nAccept: */*; q=0.5, application/xml\r\nAccept-Encoding: gzip, deflate\r\nUser-Agent: Ruby\r\nAuthorization: Basic ZmVkb3JhQWRtaW46ZmVkb3JhQWRtaW4=\r\nHost: localhost:8983\r\nContent-Length: 0\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\n"
      <- ""
      -> "HTTP/1.1 404 Not Found\r\n"
      -> "Expires: Thu, 01-Jan-1970 00:00:00 GMT\r\n"
      -> "Set-Cookie: JSESSIONID=g2s8y1h6dqzbq6wevhz795wi;Path=/fedora\r\n"
      -> "Allow: POST,GET,DELETE,PUT,OPTIONS,HEAD\r\n"
      -> "Content-Length: 0\r\n"
      -> "Date: Thu, 02 May 2013 18:21:11 GMT\r\n"
      -> "Server: Jetty(6.1-SNAPSHOT)\r\n"
      -> "\r\n"

      and a not-particularly-helpful JAX-RS message in the logs:

      WARN 2013-05-02 10:47:30.533 [btpool0-1] (JAXRSUtils) No operation matching request path "/fedora/objects/transactions%3A1/relationships/new" is found, Relative Path: /transactions%3A1/relationships/new, HTTP Method: POST, ContentType: application/x-www-form-urlencoded, Accept: application/xml,*/*;q=0.5,. Please enable FINE/TRACE log level for more details.

        Attachments

          Activity

            People

            • Assignee:
              eddie Edwin Shin
              Reporter:
              cb Chris Beer
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: