Skip to content

Conversation

cvienot
Copy link

@cvienot cvienot commented Mar 4, 2019

Closes gh-2895

Add support for zip64 jars by parsing zip64 specific records, to read correct number of files, offsets and sizes

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 4, 2019
@cvienot cvienot force-pushed the support-for-zip64-jars branch 2 times, most recently from 9535b06 to 2fb1808 Compare March 7, 2019 15:34
if (isZip64()) {
return this.zip64End.get().getNumberOfRecords();
}
else {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because of the return, you don't need an else {} statement

if (isZip64()) {
return this.zip64End.get().getCentratDirectory(data);
}
else {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because of the return, you don't need an else {} statement

}

@Test
public void zip64ArchivesAreHandledGracefully() throws IOException {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test name case should be renamed as it's not longer checking for an exception

}
}

@Test

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test name case should be renamed as it's not longer checking for an exception

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i renamed it

@cvienot cvienot force-pushed the support-for-zip64-jars branch from 2fb1808 to 59bf72a Compare March 22, 2019 19:35
@philwebb philwebb added the for: team-attention An issue we'd like other members of the team to review label Mar 29, 2019
# Conflicts:
#	spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/CentralDirectoryEndRecord.java
@philwebb philwebb added type: enhancement A general enhancement and removed for: team-attention An issue we'd like other members of the team to review status: waiting-for-triage An issue we've not yet triaged labels Apr 26, 2019
@philwebb philwebb added this to the 2.2.x milestone Apr 26, 2019
@philwebb philwebb added the for: merge-with-amendments Needs some changes when we merge label Apr 26, 2019
@philwebb philwebb self-assigned this Apr 26, 2019
@philwebb philwebb removed their assignment Sep 18, 2019
@wilkinsona wilkinsona self-assigned this Sep 20, 2019
wilkinsona pushed a commit that referenced this pull request Sep 20, 2019
wilkinsona added a commit that referenced this pull request Sep 20, 2019
@wilkinsona wilkinsona modified the milestones: 2.2.x, 2.2.0.RC1 Sep 20, 2019
@wilkinsona
Copy link
Member

Thanks very much for the PR, @cvienot. Zip64 was one of our oldest outstanding feature requests so it's great to finally have support for it. Thanks again!

pull bot pushed a commit to scope-demo/spring-boot that referenced this pull request Sep 20, 2019
pull bot pushed a commit to scope-demo/spring-boot that referenced this pull request Sep 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: merge-with-amendments Needs some changes when we merge type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support zip64 format executable archives
7 participants