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

TimeMap for binary descriptions returns 404 after creating description memento

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Fedora 5.0.0
    • Component/s: versioning
    • Labels:
      None

      Description

      To reproduce: 

      1. Create versioned resource 

      curl -i -XPOST  -H "Slug: versioned_resource4" -H "Link: <http://mementoweb.org/ns#OriginalResource>; rel=\"type\"" "http://localhost:8080/rest" -H "Content-Type: text/plain" --data-binary "Test" 
      

      2. verify that metadata versions endpoint returns 200 

      curl -v -X GET http://localhost:8080/rest/versioned_resource4/fcr:metadata/fcr:versions
      

      3. create a binary version against binary timemap

      curl -v -X POST  http://localhost:8080/rest/versioned_resource4/fcr:versions

      4.  verify that the binary description timemap is there and is listing the newly created description memento 

      curl -v -X GET http://localhost:8080/rest/versioned_resource4/fcr:metadata/fcr:versions 
      

      5. Create a second binary description memento

      curl -v -X POST  http://localhost:8080/rest/versioned_resource4/fcr:metadata/fcr:versions

      6.  Now call the binary description timemap 

      curl -v -X GET http://localhost:8080/rest/versioned_resource4/fcr:metadata/fcr:versions

      It should return a 200. It returns a 404.

      7. Now delete the previously created binary description memento.

      curl -v -X DELETE http://localhost:8080/rest/versioned_resource4/fcr:metadata/fcr:versions/<memento>
      
      

      8.  Now call the binary description timemap again and verify that it now returns 200 with a listing of the original description memento.

      curl -v -X GET http://localhost:8080/rest/versioned_resource4/fcr:metadata/fcr:versions

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ben.pennell Ben Pennell
              Reporter:
              dbernstein Danny Bernstein
              Reviewer:
              Danny Bernstein
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: