Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Fedora 4.4.0
    • Fix Version/s: Fedora 4.5.1
    • Component/s: None
    • Labels:
    • Roadmap Theme:
      API Specification
    • Sprint:
      Sprint 2015 - 12, Sprint 2015 - 13

      Description

      When creating a version, the returned location contains the JCR UUID of the created version.
      To reproduce:
      # Create a resource
      curl -i -XPUT http://localhost:8080/rest/book
      # Create version of the resource
      curl -i -XPOST -H"slug: v0" http://localhost:8080/rest/book/fcr:versions
      ** BAD: notice the response location: http://localhost:8080/rest/book/fcr:versions/87a0a8c317f1e7aa5511ed-a01e-4070-880a-bb3d78a3bbff
      ** It should be: http://localhost:8080/rest/book/fcr:versions/v0
      ---------
      # Also, if a child of the resource is created:
      curl -i -XPUT http://localhost:8080/rest/book/page
      # And another version of the resource is created:
      curl -i -XPOST -H"slug: v1" http://localhost:8080/rest/book/fcr:versions
      # And the version is retrieved:
      curl -i http://localhost:8080/rest/book/fcr:versions/v1
      ** BAD: the child resource has a UUID path such as:
      ldp:contains <http://localhost:8080/rest/book/fcr:versions/87a0a8c317f1e729ba7b74-3ac9-480a-a5f2-7d4e96c24cfb/page>
      ** It should be:
      ldp:contains <http://localhost:8080/rest/book/fcr:versions/v1/page> .

        Attachments

          Activity

            People

            • Assignee:
              awoods Andrew Woods
              Reporter:
              awoods Andrew Woods
              Reviewer:
              Esmé Cowles
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: