Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8019785

Should not set IDN.USE_STD3_ASCII_RULES option in SNIHostName

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • internal, 8
    • security-libs

      Calling IDN.toASCII with non-ascii String arg. and IDN.USE_STD3_ASCII_RULES option is set.

      Please try to run IDNTest.java attached.

      slc00snz% which java
      /java/re/jdk/8/latest/binaries/solaris-x64/bin/java
      slc00snz% java IDNTest (non-ascii value such as あいう)
      hostname = あいう
      Exception in thread "main" java.lang.IllegalArgumentException: Contains
      non-LDH characters
              at java.net.IDN.toASCIIInternal(IDN.java:275)
              at java.net.IDN.toASCII(IDN.java:118)
              at IDNTest.main(IDNTest.java:23)
      slc00snz%

      javax.net.ssl.SNIHostName use it and throw exception when hostname is non-ascii.

            xuelei Xuelei Fan
            tshioda Tomonori Shioda
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: