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

404 on GET version after Deletion of contained resource

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Fedora 4.5.0
    • Fix Version/s: Fedora 4.5.1
    • Component/s: f4-core
    • Labels:
    • Roadmap Theme:
      Services: Versioning
    • Sprint:
      Sprint 2015 - 13

      Description

      This bug is seen when a container contains another resource, the container is versioned, the child resource is deleted, then the previously created container version is retrieved.
      The following requests demonstrate the error.

      curl -i -XPUT localhost:8080/rest/collection
      curl -i -XPUT -H"Content-Type: application/pdf" --data-binary @book.pdf localhost:8080/rest/collection/book.pdf
      curl -i -XPOST -H"slug: v0" localhost:8080/rest/collection/fcr:versions
      curl -i localhost:8080/rest/collection/fcr:versions/v0
      curl -i -XDELETE localhost:8080/rest/collection/book.pdf
      curl -i localhost:8080/rest/collection/fcr:versions/v0
      ** BOOM! 404


      Note: In the case where the child resource is a binary, it appears that the binary is not moved to the "fcrepo.binary.directory/trash" when it is deleted, implying that there is still a reference to the binary... which would indicate that the 404 is at the Fedora level, and that Modeshape may still enable restoring the child resource from the container version.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                awoods Andrew Woods
                Reporter:
                jsherman Jason Sherman
                Reviewer:
                Jared Whiklo
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: