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

S3DirectBatchHandler must work with the new S3BlobProvider

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.10-HF27, 11.1, 2021.0
    • Component/s: S3
    • Release Notes Summary:
      S3 Direct upload works with the new S3BlobProvider.
    • Tags:
    • Upgrade notes:
      Hide

      A new S3 permission (action) is necessary to use DirectUpload with the new S3BlobProvider: s3:GetBucketVersioning. NOTE this is a bucket-level permission, not object-level. In S3 it must be set using a Statement including something like "Resource":"arn:aws:s3:::mybucket" and not "Resource":"arn:aws:s3:::mybucket/*".

      Show
      A new S3 permission (action) is necessary to use DirectUpload with the new S3BlobProvider: s3:GetBucketVersioning . NOTE this is a bucket-level permission, not object-level. In S3 it must be set using a Statement including something like "Resource":"arn:aws:s3:::mybucket" and not "Resource":"arn:aws:s3:::mybucket/*" .
    • Team:
      FG
    • Sprint:
      nxFG 11.1.13
    • Story Points:
      3

      Description

      It seems to fail with:

      java.lang.NullPointerException: null
      	at org.nuxeo.ecm.core.blob.binary.LazyBinary.getFile(LazyBinary.java:67) ~[nuxeo-core-api-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.core.blob.binary.LazyBinary.getStream(LazyBinary.java:60) ~[nuxeo-core-api-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.core.blob.binary.BinaryBlob.getStream(BinaryBlob.java:65) ~[nuxeo-core-api-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.core.blob.BlobWriteContext.getStream(BlobWriteContext.java:83) ~[nuxeo-core-api-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.core.blob.AbstractBlobStore.transfer(AbstractBlobStore.java:196) ~[nuxeo-core-api-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.core.blob.AbstractBlobStore.transfer(AbstractBlobStore.java:185) ~[nuxeo-core-api-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.core.blob.LocalBlobStore.write(LocalBlobStore.java:84) ~[nuxeo-core-api-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.core.blob.LocalBlobStore.writeBlob(LocalBlobStore.java:63) ~[nuxeo-core-api-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.core.blob.CachingBlobStore.writeBlob(CachingBlobStore.java:81) ~[nuxeo-core-api-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.core.blob.AbstractBlobStore.writeBlob(AbstractBlobStore.java:101) ~[nuxeo-core-api-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.core.blob.BlobStoreBlobProvider.writeBlob(BlobStoreBlobProvider.java:95) ~[nuxeo-core-api-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.core.blob.BlobStoreBlobProvider.writeBlob(BlobStoreBlobProvider.java:103) ~[nuxeo-core-api-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.core.transientstore.keyvalueblob.KeyValueBlobTransientStore.putBlobs(KeyValueBlobTransientStore.java:491) ~[nuxeo-core-cache-10.10-HF21.jar:?]
      	at org.nuxeo.ecm.automation.server.jaxrs.batch.Batch.addFile(Batch.java:185) ~[nuxeo-automation-server-10.10-HF15.jar:?]
      	at org.nuxeo.ecm.core.storage.sql.S3DirectBatchHandler.completeUpload(S3DirectBatchHandler.java:289) ~[nuxeo-core-binarymanager-s3-10.10-HF25.jar:?]
      	at org.nuxeo.ecm.restapi.server.jaxrs.BatchUploadObject.uploadCompleted(BatchUploadObject.java:458) ~[nuxeo-rest-api-server-10.10-HF22.jar:?]
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 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 - 2 hours
                  2h

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.