Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-5747

SNICombinedWithALPNTestCase fails with security manager on OpenJDK 17

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Blocker Blocker
    • None
    • 19.0.0.Beta1, 19.0.0.Beta11
    • Security
      • setup your environment to use OpenJDK 17
      • cd wildfly-core/testsuite/standalone
      • mvn test -Dtest=SNICombinedWithALPNTestCase -Dsecurity.manager

      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)
      

            dvilkola@redhat.com Diana Krepinska
            okotek@redhat.com Ondrej Kotek
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: