keycloak-protocol-cas icon indicating copy to clipboard operation
keycloak-protocol-cas copied to clipboard

Error handling for debugging

Open kkovarik opened this issue 5 years ago • 1 comments

Error handling tweaks

Recently was trying to use plugin on Keycloak (6.x), some minor tweaks that came out of it:

Try catch in ContentTypeHelper

Changed the try cache exception - maybe because of using older version of keycloak? Or some classpath issues, as on my instance there was org.jboss.resteasy.spi.BadRequestException instead of javax.ws.rs.BadRequestException. Changed to general Exception as it really doesn´t matter why recognition failed.

Logging general exception in ValidateEndpoint

Previous error was not easily debugged without it, as the exception was not logged properly. Had another issues with missing jaxb on classpath that needed to be properly logged as well. If something unexpected happens, it should be logged and at least some UUID of error added.

kkovarik avatar Nov 29 '19 10:11 kkovarik

@Doccrazy can you please do review?

hanusto avatar Feb 12 '20 09:02 hanusto