Sandor Molnar created KNOX-3220:
-----------------------------------

             Summary: Fix HashiCorp tests after upgrading to JDK17
                 Key: KNOX-3220
                 URL: https://issues.apache.org/jira/browse/KNOX-3220
             Project: Apache Knox
          Issue Type: Improvement
          Components: Server
    Affects Versions: 3.0.0
            Reporter: Sandor Molnar
            Assignee: Sandor Molnar
             Fix For: 3.0.0
         Attachments: image-2025-11-26-16-36-29-817.png

Once PR #1108 is merged, Knox builds will fail on 
{{TestHashicorpVaultAliasService}}:
{noformat}
2025-11-25 14:15:22 INFO  TestHashicorpVaultAliasService:128 - Using Knox 
specific token
Error:  Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 2.953 s 
<<< FAILURE! - in 
org.apache.knox.gateway.backend.hashicorp.vault.TestHashicorpVaultAliasService
Error:  
testVaultIntegration(org.apache.knox.gateway.backend.hashicorp.vault.TestHashicorpVaultAliasService)
  Time elapsed: 1.972 s  <<< ERROR!
java.lang.NoSuchMethodError: 'org.springframework.http.HttpStatus 
org.springframework.web.client.HttpStatusCodeException.getStatusCode()'
        at 
org.apache.knox.gateway.backend.hashicorp.vault.TestHashicorpVaultAliasService.testVaultIntegration(TestHashicorpVaultAliasService.java:176)

Error:  
testVaultIntegrationPermissions(org.apache.knox.gateway.backend.hashicorp.vault.TestHashicorpVaultAliasService)
  Time elapsed: 0.712 s  <<< ERROR!
java.lang.NoSuchMethodError: 'org.springframework.http.HttpStatus 
org.springframework.web.client.HttpStatusCodeException.getStatusCode()'
        at 
org.apache.knox.gateway.backend.hashicorp.vault.TestHashicorpVaultAliasService.testVaultIntegrationPermissions(TestHashicorpVaultAliasService.java:229)

[INFO] 
[INFO] Results:
[INFO] 
Error:  Errors: 
Error:    TestHashicorpVaultAliasService.testVaultIntegration:176 » 
NoSuchMethod 'org.sp...
Error:    TestHashicorpVaultAliasService.testVaultIntegrationPermissions:229 » 
NoSuchMethod
[INFO] 
Error:  Tests run: 2, Failures: 0, Errors: 2, Skipped: 0
{noformat}

The fix is already available on another PR:
https://github.com/apache/knox/pull/1110/commits/d7e64e85c484bba2e3bb90b9e4aa189dcda96f12

This is working, see GH actions as proof:
 !image-2025-11-26-16-36-29-817.png|height=300! 

The task is to cherry-pick and merge this change to {master} right after #1108 
is merged.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to