Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-12113

CPConverter: Improve error message "File being unzipped is too big" for Sling-Initial-Content

    XMLWordPrintableJSON

Details

    Description

      if you use an OSGi bundle with Sling-Initial-Content, and the size of the unzipped content exceeds 100MB, currently an error messages without any context (out of a complex build) is issued:

      Caused by: java.lang.IllegalStateException: File being unzipped is too big.
          at org.apache.sling.feature.cpconverter.handlers.slinginitialcontent.SlingInitialContentBundleEntryMetaDataCollector.collectFromContextAndWriteTmpFiles (SlingInitialContentBundleEntryMetaDataCollector.java:105)
          at org.apache.sling.feature.cpconverter.handlers.slinginitialcontent.BundleSlingInitialContentExtractor.extract (BundleSlingInitialContentExtractor.java:80)
          at org.apache.sling.feature.cpconverter.handlers.SlingInitialContentBundleHandler.processBundleInputStream (SlingInitialContentBundleHandler.java:53)
          at org.apache.sling.feature.cpconverter.handlers.BundleEntryHandler.handle (BundleEntryHandler.java:141)
      ...
      

      this error messages should be improved to include the actual file name, and the actual limit that was hit (it's hard-coded 100MB in this case).

      Attachments

        Issue Links

          Activity

            People

              sseifert Stefan Seifert
              sseifert Stefan Seifert
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: