Uploaded image for project: 'Jackrabbit FileVault'
  1. Jackrabbit FileVault
  2. JCRVLT-606

Potential NPE in PackageManager.rewrap(....)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.5.8
    • 3.6.0
    • None
    • None

    Description

      In case the given VaultPackage returns null for its getFile() method, the following NPE is thrown:

      java.lang.NullPointerException
      	at java.util.zip.ZipFile.<init>(ZipFile.java:220)
      	at java.util.zip.ZipFile.<init>(ZipFile.java:162)
      	at org.apache.jackrabbit.vault.packaging.impl.PackageManagerImpl.rewrap(PackageManagerImpl.java:216)
      	at org.apache.jackrabbit.vault.packaging.impl.PackageManagerImpl.rewrap(PackageManagerImpl.java:183)
      	at ...
      

      Instead of relying on implementation details of VaultPackage it should only act on Archive API to be able to rewrap arbitrary VaultPackage types.

      Attachments

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: