Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-10241

NPE while trying to get the BinaryDownload URI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.54.0
    • store-spi

    Description

      The line of code at BinaryImpl.java:L104 should be handling the possibility that getBinaryValue() could return null.

      When trying to get a SAS uri for a binary, we got the following error

      java.lang.NullPointerException: null
      	at org.apache.jackrabbit.oak.plugins.value.jcr.BinaryImpl.getURI(BinaryImpl.java:104) [org.apache.jackrabbit.oak-store-spi:1.48.0.T20230202132234-aa49252]
      

      Unfortunately we don't know much about the resource in question and why the value of this would not be PropertyType.BINARY.

      Attachments

        Activity

          People

            mreutegg Marcel Reutegger
            manasmaji4 Manas Kumar Maji
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: