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

Fix NPE in CachingBinaryManager on missing blob

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.10
    • Fix Version/s: 6.0-HF24, 7.10-HF01, 8.1
    • Component/s: Core VCS, S3

      Description

      If a blob len is requested from S3 but the blob is missing (or has invalid ETag) then we may get:

      java.lang.NullPointerException
            at org.nuxeo.ecm.core.blob.binary.CachingBinaryManager.putLengthInCache(CachingBinaryManager.java:220)
            at org.nuxeo.ecm.core.blob.binary.CachingBinaryManager.getLength(CachingBinaryManager.java:191)
            at org.nuxeo.ecm.core.blob.binary.LazyBinary.getLength(LazyBinary.java:85)
            at org.nuxeo.ecm.core.blob.binary.BinaryBlobProvider.readBlob(BinaryBlobProvider.java:89)
            at org.nuxeo.ecm.core.storage.sql.S3BinaryManager.readBlob(S3BinaryManager.java:566)
            at org.nuxeo.ecm.core.blob.BlobManagerComponent.readBlob(BlobManagerComponent.java:232)
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: