cncf / cncf-fuzzing

✨🔐 CNCF Fuzzers
https://cncf.io/projects
Apache License 2.0
111 stars 41 forks source link

Fix general exception handling #444

Closed arthurscchan closed 1 year ago

arthurscchan commented 1 year ago

Some methods of keycloak wrap internal exceptions with the general Exception. This make it hard to handle separate exceptions from keycloak. This PR modifies the exception handling of JweAlgorithmProviderFuzzer by replacing the capturing of general Exception. The new approach capture certain known exception and throw the other exception out. This could be more precise in finding unexpected exceptions.