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

RFC2231 throws NullPointerException when encoding

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 10.3-SNAPSHOT
    • Fix Version/s: 10.3
    • Component/s: Core
    • Tags:
    • Sprint:
      nxAI Sprint 10.3.8, nxAI Sprint 10.3.9
    • Story Points:
      1

      Description

      If you pass null into percentEscape it throws a NullPointerException. This happens when a blob has no filename.

      java.lang.NullPointerException: null
      	at org.nuxeo.common.utils.RFC2231.percentEscape(RFC2231.java:54) ~[nuxeo-common-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.common.utils.RFC2231.encodeContentDisposition(RFC2231.java:94) ~[nuxeo-common-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.blob.AbstractCloudBinaryManager.getContentDispositionHeader(AbstractCloudBinaryManager.java:245) ~[nuxeo-core-binarymanager-common-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.storage.sql.S3BinaryManager.getRemoteUri(S3BinaryManager.java:678) ~[nuxeo-core-binarymanager-s3-10.3-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.blob.AbstractCloudBinaryManager.getURI(AbstractCloudBinaryManager.java:174) ~[nuxeo-core-binarymanager-common-10.3-SNAPSHOT.jar:?]
      

        Attachments

          Activity

            People

            • Assignee:
              gjames Gethin James
              Reporter:
              gjames Gethin James
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: