Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-15316

Update jose4j to 0.7.9

XMLWordPrintable

    • Icon: Component Upgrade Component Upgrade
    • Resolution: Done
    • Icon: Major Major
    • 25.0.0.Final
    • None
    • None
    • None

      This jose4j component upgrade will fix the test failureĀ inĀ TokenUtilsEncryptTest.testFailAlgorithm }}for SE 17{{.

      The release notes here fix the issue where AES Key Wrap Algorithms were not being recognised as available.

      https://bitbucket.org/b_c/jose4j/wiki/Release%20Notes


      With SE 17, TokenUtilsEncryptTest.testFailAlgorithm fails with following exception:

      Expected exception of type class org.jose4j.jwt.consumer.InvalidJwtException but got org.jose4j.lang.InvalidAlgorithmException: A128KW is an unknown, unsupported or unavailable alg algorithm (not one of [RSA1_5, RSA-OAEP, RSA-OAEP-256, dir, ECDH-ES, A128GCMKW, A192GCMKW, A256GCMKW]).
        at org.testng.internal.ExpectedExceptionsHolder.wrongException(ExpectedExceptionsHolder.java:68)
        at org.testng.internal.Invoker.considerExceptions(Invoker.java:1130)
        at org.testng.internal.Invoker.invokeMethod(Invoker.java:615)
        at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719)
        at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989)
        at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
        at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
        at org.testng.TestRunner.privateRun(TestRunner.java:648)
        at org.testng.TestRunner.run(TestRunner.java:505)
        at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
        at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
        at org.testng.SuiteRunner.run(SuiteRunner.java:364)
        at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
        at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
        at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
        at org.testng.TestNG.runSuites(TestNG.java:1049)
        at org.testng.TestNG.run(TestNG.java:1017)
        at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:283)
        at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75)
        at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:120)
        at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345)
        at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418)
      Caused by: org.jose4j.lang.InvalidAlgorithmException: A128KW is an unknown, unsupported or unavailable alg algorithm (not one of [RSA1_5, RSA-OAEP, RSA-OAEP-256, dir, ECDH-ES, A128GCMKW, A192GCMKW, A256GCMKW]).
        at org.jose4j.jwa.AlgorithmFactory.getAlgorithm(AlgorithmFactory.java:51)
        at org.jose4j.jwe.JsonWebEncryption.getKeyManagementModeAlgorithm(JsonWebEncryption.java:159)
        at org.jose4j.jwe.JsonWebEncryption.getKeyManagementModeAlgorithm(JsonWebEncryption.java:142)
        at org.jose4j.jwe.JsonWebEncryption.getCompactSerialization(JsonWebEncryption.java:257)
        at org.eclipse.microprofile.jwt.tck.util.TokenUtils.encryptString(TokenUtils.java:465)
        at org.eclipse.microprofile.jwt.tck.util.TokenUtils.encryptClaims(TokenUtils.java:348)
        at org.eclipse.microprofile.jwt.tck.util.TokenUtils.encryptClaims(TokenUtils.java:288)
        at org.eclipse.microprofile.jwt.tck.util.TokenUtils.encryptClaims(TokenUtils.java:272)
        at org.eclipse.microprofile.jwt.tck.util.TokenUtilsEncryptTest.testFailAlgorithm(TokenUtilsEncryptTest.java:49)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
        at org.testng.internal.Invoker.invokeMethod(Invoker.java:583)
        ... 23 more
      

              araskar@redhat.com Ashpan Raskar (Inactive)
              fjuma1@redhat.com Farah Juma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: