Uploaded image for project: 'Nuxeo AI Core'
  1. Nuxeo AI Core
  2. AICORE-422

Enrichment json file download fails with S3 direct download

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 2.4.6
    • Component/s: AI Cloud Services

      Description

      trying to download https://.../nuxeo/nxfile/default/docid/enrichment:items/0/normalized?changeToken=8-0 results in a null pointer exception

      Caused by: java.lang.NullPointerException
      	at org.nuxeo.common.utils.RFC2231.encodeRFC2231(RFC2231.java:80)
      	at org.nuxeo.common.utils.RFC2231.encodeContentDisposition(RFC2231.java:123)
      	at org.nuxeo.ecm.blob.s3.S3BlobProvider.getContentDispositionHeader(S3BlobProvider.java:200)
      	at org.nuxeo.ecm.blob.s3.S3BlobProvider.getURIS3(S3BlobProvider.java:189)
      	at org.nuxeo.ecm.blob.s3.S3BlobProvider.getURI(S3BlobProvider.java:143)
      	at org.nuxeo.ecm.core.blob.BlobManagerComponent.getURI(BlobManagerComponent.java:257)
      	at org.nuxeo.ecm.core.io.download.DefaultRedirectResolver.getURI(DefaultRedirectResolver.java:41)
      	at org.nuxeo.ecm.core.io.download.DownloadServiceImpl.downloadBlob(DownloadServiceImpl.java:586)
      	at org.nuxeo.ecm.core.io.download.DownloadServiceImpl.handleDownload(DownloadServiceImpl.java:397)
      	at org.nuxeo.ecm.core.io.download.DownloadServiceImpl.handleDownload(DownloadServiceImpl.java:324)
      	at org.nuxeo.ecm.platform.ui.web.download.DownloadServlet.handleDownload(DownloadServlet.java:83)
      	at org.nuxeo.ecm.platform.ui.web.download.DownloadServlet.doGet(DownloadServlet.java:61)
      

      Most likely due to the blob not having a filename.

        Attachments

          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 - 2 hours
                2h