RFR: 8258246: sun.net.www.ParseUtil.decode throws java.lang.IllegalArgumentException: Error decoding percent encoded characters [v2]
Fabian Meumertzheim
fmeum at openjdk.org
Fri Jan 31 12:53:32 UTC 2025
> `URLClassPath` called into `ParseUtil.fileToEncodedURL`, which misencoded characters with a four byte UTF-8 representation. Replacing that function with `toPath().toUri().toURL()` (and removing it, since its only used once) results in correct encoding for all Unicode characters.
Fabian Meumertzheim has updated the pull request incrementally with one additional commit since the last revision:
Fix bug reference
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/23383/files
- new: https://git.openjdk.org/jdk/pull/23383/files/1846a5a8..87be70b0
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=23383&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=23383&range=00-01
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/23383.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/23383/head:pull/23383
PR: https://git.openjdk.org/jdk/pull/23383
More information about the net-dev
mailing list