Skip to content

8347712: IllegalStateException on multithreaded ZipFile access with non-UTF8 charset #3720

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jankratochvil
Copy link
Contributor

@jankratochvil jankratochvil commented Jul 8, 2025

Multithreaded handling of ZIP files can throw an exception.

This backport is far from clean. The last commit resolves the conflicts.

The backport would be a little cleaner if there was backported as a pre-requisite JDK-8321156. But given there is a backward compatibility concern I have not backported it.

(jdk25 already contains it), jdk21, this jdk17.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • JDK-8347712 needs maintainer approval
  • JDK-8355975 needs maintainer approval
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issues

  • JDK-8347712: IllegalStateException on multithreaded ZipFile access with non-UTF8 charset (Bug - P3)
  • JDK-8355975: ZipFile uses incorrect Charset if another instance for the same ZIP file was constructed with a different Charset (Bug - P3)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/3720/head:pull/3720
$ git checkout pull/3720

Update a local copy of the PR:
$ git checkout pull/3720
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/3720/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 3720

View PR using the GUI difftool:
$ git pr show -t 3720

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/3720.diff

Using Webrev

Link to Webrev Comment

jaikiran and others added 2 commits July 8, 2025 15:18
…on-UTF8 charset

8355975: ZipFile uses incorrect Charset if another instance for the same ZIP file was constructed with a different Charset

Co-authored-by: Eirik Bjørsnøs <[email protected]>
Reviewed-by: eirbjo, lancea, redestad, alanb
@bridgekeeper
Copy link

bridgekeeper bot commented Jul 8, 2025

👋 Welcome back jkratochvil! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Jul 8, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot changed the title Backport 2c4e8d211a030c85488e656a9a851d10dd0f9c11 8347712: IllegalStateException on multithreaded ZipFile access with non-UTF8 charset Jul 8, 2025
@openjdk
Copy link

openjdk bot commented Jul 8, 2025

This backport pull request has now been updated with issues from the original commit.

@openjdk openjdk bot added backport Port of a pull request already in a different code base rfr Pull request is ready for review labels Jul 8, 2025
@mlbridge
Copy link

mlbridge bot commented Jul 8, 2025

Webrevs

Copy link
Member

@phohensee phohensee left a comment

Choose a reason for hiding this comment

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

Almost clean backport from the 21u backport openjdk/jdk21u-dev#1949. Lgtm.

@openjdk
Copy link

openjdk bot commented Jul 9, 2025

⚠️ @jankratochvil This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

Copy link
Member

@phohensee phohensee left a comment

Choose a reason for hiding this comment

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

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Port of a pull request already in a different code base rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

3 participants