RFR: 8294378: URLPermission constructor exception when using tr locale

Ryan Wallace duke at openjdk.org
Tue Nov 8 09:47:01 UTC 2022


Hi all,

Please review this fix for  Invalid characters in hostname exception. 
This was due to the URLPermission.parseURI() method calling String.toLowerCase() and returning a non ASCII characters in the case of the tr Locale.  The fix was to use the HostPortrange.toLowerCase() method further down the stack which is Locale safe.

Thanks,
Ryan.

-------------

Commit messages:
 - Merge branch 'master' into 8294378
 - Merge branch 'master' into 8294378
 - Merge branch 'master' into 8294378
 - Merge branch 'master' into 8294378
 - Merge branch 'master' into 8294378
 - Merge branch 'master' into 8294378
 - 8294378: Remove toLowerCase for auth url string to mitigate non ascii characters generated in URLPermission and change url to lowercase in HostPortrange
 - Merge branch 'master' into 8294378
 - 8294378: Remove toLowerCase for auth url string to mitigate non ascii characters generated in URLPermission and change url to lowercase in HostPortrange
 - Merge branch 'master' into 8294378
 - ... and 6 more: https://git.openjdk.org/jdk/compare/dd5d4df5...07aa9643

Changes: https://git.openjdk.org/jdk/pull/10903/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10903&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8294378
  Stats: 10 lines in 3 files changed: 6 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/10903.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10903/head:pull/10903

PR: https://git.openjdk.org/jdk/pull/10903


More information about the net-dev mailing list