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

JCR leakage in version creation location

    XMLWordPrintable

    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:

      1. Create a resource
        curl -i -XPUT http://localhost:8080/rest/book
      2. Create version of the resource
        curl -i -XPOST -H"slug: v0" http://localhost:8080/rest/book/fcr:versions
      3. Also, if a child of the resource is created:
        curl -i -XPUT http://localhost:8080/rest/book/page
      4. And another version of the resource is created:
        curl -i -XPOST -H"slug: v1" http://localhost:8080/rest/book/fcr:versions
      5. And the version is retrieved:
        curl -i http://localhost:8080/rest/book/fcr:versions/v1

        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: