JDK-8037235 : Conversion to lower case for non-proxy URLs
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: generic
  • CPU: generic
  • Submitted: 2014-03-12
  • Updated: 2014-03-21
  • Resolved: 2014-03-14
Related Reports
Relates :  
Description
sun.net.spi.DefaultProxySelector converts patterns for non-proxy urls to lower case. Pattern is always lowercased but urls it matched against are always treated literally. That leads to a peculiar behavior when DefaultProxySelector tries to determine whether a proxy should be used to access a given url. It's neither case sensitive nor case insensitive (meanwhile RFC 4343 says domains should be treated in case insensitive manner).

Investigate the reasons behind this behavior in DefaultProxySelector and fix it if appropriate.
Comments
Apparently I "observed" the issue that is no longer there (see related JIRA). There is an appropriate lowercasing for both a pattern and a host. Therefore the code is fine. The only useful thing I can do now is to update the existing test (B6563259). To make sure it verifies that case is ignored for both a pattern and a host (now it only tests whether the host is lowercased).
14-03-2014