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

PUT must fail with 409 if trying to change interaction model to non-subtype

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Fedora 4.7.4
    • Fix Version/s: Fedora 5.0.0
    • Component/s: f4-core
    • Labels:
      None

      Description

      https://fcrepo.github.io/fcrepo-specification/#httpPUT

      Additional notes: Currently attempting to remove an interaction model is resulting in a 204 rather than a 409. In other words if after crating a non-rdf resource you attempt to remove it by means of this call:

      curl -v -X PATCH -H "Content-Type: application/sparql-update" http://localhost:8080/rest/mytest/fcr:metadata --data "PREFIX ldp: <http://www.w3.org/ns/ldp#>
      PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
      DELETE {
         <http://localhost:8080/rest/mytest> rdf:type ldp:NonRDFSource .
      }
      WHERE {}"

      The result is 204 rather than 409.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dbernstein Danny Bernstein
                Reporter:
                esc Esmé Cowles
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: