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

Creating and deleting a resource in the same transaction causes server error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Fedora 6.0.0
    • Fix Version/s: Fedora 6.0.0
    • Component/s: f4-core
    • Labels:

      Description

      From Andrew Woods

      • When creating and deleting a resource within the same transaction... BOOM!
      • This is true for both containers and binaries

       

      curl -i -X POST "http://localhost:8080/rest/fcr:tx"
      txid=<txn-URI>
      // Buy ourselves some extra time
      curl -i -XPOST ${txid}
      curl -i -H"Atomic-ID: ${txid}" -XPUT -d "some text" localhost:8080/rest/binary
      curl -i -H"Atomic-ID: ${txid}" localhost:8080/rest/binary
      {{curl -i -H"Atomic-ID: ${txid}" -XDELETE localhost:8080/rest/binary
      // Notice above request results in stacktrace - BAD}}

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              whikloj Jared Whiklo
              Reporter:
              whikloj Jared Whiklo
              Reviewer:
              Peter Winckles
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: