• Andy Wilkinson's avatar
    Ensure that entry is completely configured before putting to the stream · ab18901a
    Andy Wilkinson authored
    Previously, BootZipCopyAction would put the next entry to the stream
    and then, in the case of a stored entry, configure its size, CRC32
    etc. This had the benefit of being able to copy the entry into the
    zip once, capturing its bytes for the calculation of the CRC32 as it
    was copied. Unfortunately, while this produced zip files that could
    be read by the JVM, other zip tools failed. For example, Go's zip
    support that's used by CloudFoundry could not unzip the archive.
    
    This commit updates BootZipCopy action to completely configure the
    entry before putting it to the stream. This has the downside of
    copying the file twice (once for the CRC32 and once to actually write
    it to the zip stream) but this appears to be unavoidable as we have to
    produce archives that can be unzipped without problems on all
    platforms.
    
    Closes gh-8816
    ab18901a
Name
Last commit
Last update
.github Loading commit data...
.mvn Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-actuator-docs Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-devtools Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-test Loading commit data...
spring-boot-test-autoconfigure Loading commit data...
spring-boot-tools Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CODE_OF_CONDUCT.adoc Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...