api-layer icon indicating copy to clipboard operation
api-layer copied to clipboard

zaas-client src/test/resources/keystores/truststore.p12 (EDC5129I No such file or directory.) error

Open recaph opened this issue 2 years ago • 2 comments

Describe the bug REST API startup fails with followng error when apiml.gateway.ssl.* are not provided even when server.ssl.* has the necessary values.

Caused by: java.io.FileNotFoundException: src/test/resources/keystores/truststore.p12 (EDC5129I No such file or directory.)         
.at java.base/java.io.FileInputStream.open(FileInputStream.java:216) ~.na:na.                                                       
.at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157) ~.na:na.                                                     
.at java.base/java.io.FileInputStream.<init>(FileInputStream.java:111) ~.na:na.                                                     
.at org.zowe.apiml.zaasclient.service.internal.ZaasHttpsClientProvider.getCorrectInputStream(ZaasHttpsClientProvider.java:153) ~.zaa
s-client-2.12.3.jar!/:2.12.3.                                                                                                       
.at org.zowe.apiml.zaasclient.service.internal.ZaasHttpsClientProvider.getKeystore(ZaasHttpsClientProvider.java:134) ~.zaas-client-2
.12.3.jar!/:2.12.3.                                                                                                                 

Steps to Reproduce

  1. Start the spring boot application with server.ssl.* values and do not provide apiml.gateway.ssl.* values.

Expected behavior apiml.gateway.ssl should default to the server.ssl values appropriately or throw an actionable error instead

Details

  • Version and build number: 2.12

REST API client (in case of REST API issue):

  • Technology: Spring Boot
  • OS: z/OS

recaph avatar Dec 11 '23 16:12 recaph

Thanks for the feedback. If you have a fix, it would be great if you can provide it, otherwise we will get to it in next quarter e.g. February time frame.

balhar-jakub avatar Dec 12 '23 09:12 balhar-jakub

I can try to do something. but if team is ready to pick anytime before it, don't wait for me. thanks

recaph avatar Dec 13 '23 23:12 recaph

ZaasClient reads properties from apiml.service.ssl.* and those defaults to server.ssl.* It is not related to apiml.gateway.* peoperties. @recaph Does this answer your question?

richard-salac avatar Aug 21 '24 12:08 richard-salac

As there is no answer, there seems to be no further interest in this case. If you feel different, please feel free to reopen.

balhar-jakub avatar Aug 28 '24 12:08 balhar-jakub