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

Fix GridFSBinaryManager to manage blob providers configured as transient

    XMLWordPrintable

    Details

    • Release Notes Summary:
      GridFSBinaryManager handles transient blob providers.
    • Backlog priority:
      800
    • Sprint:
      nxFG 11.1.4

      Description

      The current code of GridFSBinaryManager does not handle the property transient as it's done by BinaryBlobProvider.java.
      The consequence is the following error when trying to use a GridFS blob provider, which can be easily reproduce by using D&D in Nuxeo WebUI

      2019-02-28T15:35:40,861 ERROR [WebEngineExceptionMapper] org.nuxeo.ecm.core.api.NuxeoException: Blob provider: transient_BatchManagerCache used for Key/Value store: transient_BatchManagerCache must be configured as transient
      org.nuxeo.ecm.core.api.NuxeoException: Blob provider: transient_BatchManagerCache used for Key/Value store: transient_BatchManagerCache must be configured as transient
      	at org.nuxeo.ecm.core.transientstore.keyvalueblob.KeyValueBlobTransientStore.getBlobProvider(KeyValueBlobTransientStore.java:185) ~[nuxeo-core-cache-10.10.jar:?]
      	at org.nuxeo.ecm.core.transientstore.keyvalueblob.KeyValueBlobTransientStore.putBlobs(KeyValueBlobTransientStore.java:422) ~[nuxeo-core-cache-10.10.jar:?]
      	at org.nuxeo.ecm.automation.server.jaxrs.batch.Batch.addFile(Batch.java:185) ~[nuxeo-automation-server-10.10.jar:?]
      	at org.nuxeo.ecm.restapi.server.jaxrs.BatchUploadObject.addBlob(BatchUploadObject.java:321) ~[nuxeo-rest-api-server-10.10.jar:?]
      	at org.nuxeo.ecm.restapi.server.jaxrs.BatchUploadObject.uploadNoTransaction(BatchUploadObject.java:273) ~[nuxeo-rest-api-server-10.10.jar:?]
      	at org.nuxeo.ecm.restapi.server.jaxrs.BatchUploadObject.upload(BatchUploadObject.java:181) ~[nuxeo-rest-api-server-10.10.jar:?]
      

      GridFSBinaryManager#initialize does not read the transient property.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h