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

New tests from 8144566 fail with "No expected Server Name Indication"

    Details

      Backports

        Description

        Following tests added with JDK-8144566 failed.

        javax/net/ssl/ServerName/BestEffortOnLazyConnected.java
        sun/net/www/protocol/https/HttpsURLConnection/ImpactOnSNI.java

        Server died...
        java.lang.Exception: No expected Server Name Indication
        at BestEffortOnLazyConnected.doServerSide(BestEffortOnLazyConnected.java:120)
        at BestEffortOnLazyConnected.access$000(BestEffortOnLazyConnected.java:43)
        at BestEffortOnLazyConnected$1.run(BestEffortOnLazyConnected.java:288)

        JavaTest Message: Test threw exception: java.lang.Exception: No expected Server Name Indication
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.Exception: No expected Server Name Indication


        Server died...
        java.lang.Exception: No expected Server Name Indication
        at ImpactOnSNI.doServerSide(ImpactOnSNI.java:143)
        at ImpactOnSNI.access$100(ImpactOnSNI.java:40)
        at ImpactOnSNI$1.run(ImpactOnSNI.java:340)

        JavaTest Message: Test threw exception: java.lang.Exception: No expected Server Name Indication
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.Exception: No expected Server Name Indication

          Issue Links

            Activity

            Hide
            ssides Steve Sides added a comment - - edited
            These 2 tests fail when run on slc09qkr/qkw(zones) and pass when run on slc08giy(a vm).
            I have entered an infrastructure bug to look at it from that perspective,
            https://java.se.oracle.com/infrabugs/browse/INFRA-7425
            Show
            ssides Steve Sides added a comment - - edited These 2 tests fail when run on slc09qkr/qkw(zones) and pass when run on slc08giy(a vm). I have entered an infrastructure bug to look at it from that perspective, https://java.se.oracle.com/infrabugs/browse/INFRA-7425
            Hide
            rhalade Rajan Halade added a comment -
            I think the test failure is result of not having fully qualified domain name. Following check skips the test if hostname is not fully qualified but isn't complete -
            http://hg.openjdk.java.net/jdk9/jdk9/jdk/file/647431dccd71/test/javax/net/ssl/ServerName/BestEffortOnLazyConnected.java#l199

            The check at http://hg.openjdk.java.net/jdk9/jdk9/jdk/file/647431dccd71/src/java.base/share/classes/sun/security/ssl/Utilities.java#l96 adds hostname to SNI only if it is fully qualified domain name. So in this case, hostname won't be added to SNI extension and test will fail.
            Show
            rhalade Rajan Halade added a comment - I think the test failure is result of not having fully qualified domain name. Following check skips the test if hostname is not fully qualified but isn't complete - http://hg.openjdk.java.net/jdk9/jdk9/jdk/file/647431dccd71/test/javax/net/ssl/ServerName/BestEffortOnLazyConnected.java#l199 The check at http://hg.openjdk.java.net/jdk9/jdk9/jdk/file/647431dccd71/src/java.base/share/classes/sun/security/ssl/Utilities.java#l96 adds hostname to SNI only if it is fully qualified domain name. So in this case, hostname won't be added to SNI extension and test will fail.
            Hide
            rhalade Rajan Halade added a comment -
            This is not a bug. As per RFC, hostname needs to be fully qualified -

            "HostName" contains the fully qualified DNS hostname of the server,
               as understood by the client. The hostname is represented as a byte
               string using UTF-8 encoding [UTF8], without a trailing dot.
            Show
            rhalade Rajan Halade added a comment - This is not a bug. As per RFC, hostname needs to be fully qualified - "HostName" contains the fully qualified DNS hostname of the server,    as understood by the client. The hostname is represented as a byte    string using UTF-8 encoding [UTF8], without a trailing dot.
            Show
            rhalade Rajan Halade added a comment - Review sent - http://mail.openjdk.java.net/pipermail/security-dev/2016-May/013904.html
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/ee022b8f5e2d
            User: asmotrak
            Date: 2016-05-16 17:36:33 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/ee022b8f5e2d User: asmotrak Date: 2016-05-16 17:36:33 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/ee022b8f5e2d
            User: lana
            Date: 2016-05-25 17:36:43 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/ee022b8f5e2d User: lana Date: 2016-05-25 17:36:43 +0000

              People

              • Assignee:
                rhalade Rajan Halade
                Reporter:
                rhalade Rajan Halade
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: