Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-23684

SNICombinedWithALPNTestCase fails with security manager on OpenJDK 17

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Critical
    • 7.4.7.CR1, 7.4.7.GA
    • 8.0.0.Beta-DR3
    • Security
    • False
    • False
    • +
    • Hide

      Add this line to the default.policy file of the JDK-17 distribution (/usr/lib/jvm/java-17/lib/security/default.policy).
       

      Show
      Add this line to the default.policy file of the JDK-17 distribution ( /usr/lib/jvm/java-17/lib/security/default.policy ).  
      • setup your environment to use OpenJDK 17
      • cd wildfly-core/testsuite/standalone
      • mvn test -Dtest=SNICombinedWithALPNTestCase -Dsecurity.manager

    Description

      org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase tests fail with security manager enabled when running on OpenJDK 17.

      org.junit.ComparisonFailure: expected:<Response sent:HTTP/[2.0]> but was:<Response sent:HTTP/[1.1]>
      	at org.junit.Assert.assertEquals(Assert.java:117)
      	at org.junit.Assert.assertEquals(Assert.java:146)
      	at org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase.performSimpleTest(SNICombinedWithALPNTestCase.java:273)
      	at org.jboss.as.test.integration.security.ssl.sni.SNICombinedWithALPNTestCase.testHttpsViaIp(SNICombinedWithALPNTestCase.java:232)
      ...
      

      It works on Oracle JDK 17.

      It's probably not a test issue as I have tried to satisfy permissions requested by the deployment with no luck.

      # OpenJDK where it fails
      $ java -version
      openjdk version "17.0.1" 2021-10-19 LTS
      OpenJDK Runtime Environment 21.9 (build 17.0.1+12-LTS)
      OpenJDK 64-Bit Server VM 21.9 (build 17.0.1+12-LTS, mixed mode, sharing)
      
      # Oracle JDK where it passes
      $ java -version
      openjdk version "17.0.1" 2021-10-19
      OpenJDK Runtime Environment (build 17.0.1+12-39)
      OpenJDK 64-Bit Server VM (build 17.0.1+12-39, mixed mode, sharing)
      

      Attachments

        Issue Links

          Activity

            People

              dvilkola@redhat.com Diana Krepinska
              jkasik@redhat.com Jan Kašík
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: