International-Data-Spaces-Association / IDS-Enterprise-Integration-Connector

Lightweight Interoprable Connector Architecture for IDS-Communicatons.
Apache License 2.0
4 stars 2 forks source link

NPEs if security token is missing #2

Open sebplorenz opened 3 years ago

sebplorenz commented 3 years ago

Hi, if the security token is missing at startup an exception appears in the logs: d.f.i.eis.ids.mdmconnector.main.Main.setUp - Could not create security token! java.nio.file.NoSuchFileException: resources/iais3-keystore.jks but the connector is starting up.

If you then request a self description using the /data endpoint an NPE occurs and the request will not be served.

Expected: Either the connector does not startup when the security token is missing or the requests are served properly even in case the token is missing or a proper ids error message is sent.

DennisKubitza commented 3 years ago

Hello Sebastian,

you are right, we should have a fallback mechanism in place. This will be added to our backlog.