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

PUT request should default to Prefer:handling=lenient

    Details

    • Type: Story
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: Fedora 4.5.0
    • Fix Version/s: None
    • Component/s: f4-core
    • Labels:
      None
    • Environment:
      RHEL 6, Tomcat7, fcrepo 4.5.0
    • Roadmap Theme:
      Services: CRUD
    • Sprint:
      Sprint 2015 - 14

      Description

      PUT request with non server-managed triples in payload fails.

      Steps to reproduce:

      $ curl -i -X PUT https://lmyrepo.edu/fcrepo/rest/test/testput
      HTTP/1.1 201 Created
      Date: Thu, 25 Feb 2016 15:27:46 GMT
      Server: Apache-Coyote/1.1
      ETag: "e74f03e5f3a1784d15decb8eefec68f7bd281af3"
      Last-Modified: Thu, 25 Feb 2016 15:27:46 GMT
      Location: https://myrepo.edu/fcrepo/rest/test/testput
      Content-Type: text/plain; charset=UTF-8
      Content-Length: 55
      Connection: close

      https://myrepo.edu/fcrepo/rest/test/testput

      $ curl -i -X PUT -H'Content-Type:text/turtle' --upload-file minimal.ttl https://myrepo.edu/fcrepo/rest/test/testput
      HTTP/1.1 100 Continue

      HTTP/1.1 100 Continue

      HTTP/1.1 409 Conflict
      Date: Thu, 25 Feb 2016 15:27:51 GMT
      Server: Apache-Coyote/1.1
      Link: <https://myrepo.edu/static/constraints/ServerManagedTypeException.rdf&gt;; rel="http://www.w3.org/ns/ldp#constrainedBy"
      Content-Type: text/plain; charset=UTF-8
      Content-Length: 112
      Connection: close

      The repository type (http://fedora.info/definitions/v4/repository#Container) of this resource is system managed.

      Content of 'minimal.ttl':

      @prefix xsd: <http://www.w3.org/2001/XMLSchema> .
      @prefix dc: <http://purl.org/dc/elements/1.1/> .
      <> dc:title "Hello"^^xsd:string .

      For what I understand, omitting server-managed properties for an existing resource should just leave those properties unchanged, right?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                scossu Stefano Cossu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: