Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-10964

Automation: ensure transaction is commited before Blob response is serialized to client

    XMLWordPrintable

    Details

    • Sprint:
      Sprint Drive 7.2-3
    • Story Points:
      3

      Description

      As BlobWriter calls BufferingServletOutputStream.stopBufferingThread() to avoid buffering large files, the response can be sent to the client whereas the transaction is still not commited.
      It is a problem for custom operations that do updates in the repository and return small JSON blobs to the client.
      A possible solutions would be to handle the transaction explicitly in the JAX-RS Automation resource rather than in the Servlet filter.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Remaining Estimate - 1 day
                  1d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified