Integrated: 8294378: URLPermission constructor exception when using tr locale

Ryan Wallace duke at openjdk.org
Sat Nov 12 01:40:41 UTC 2022


On Fri, 28 Oct 2022 13:48:04 GMT, Ryan Wallace <duke at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: ff2c9876
Author:    Ryan Wallace <ryan.w.wallace at oracle.com>
Committer: Jaikiran Pai <jpai at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/ff2c987669523613f3e5dc19493a41f849f882f6
Stats:     13 lines in 3 files changed: 8 ins; 0 del; 5 mod

8294378: URLPermission constructor exception when using tr locale

Reviewed-by: dfuchs, jpai, aefimov

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

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


More information about the net-dev mailing list