vyommani commented on code in PR #1359:
URL: https://github.com/apache/ranger/pull/1359#discussion_r4749316881


##########
security-admin/src/main/java/org/apache/ranger/biz/KmsKeyMgr.java:
##########
@@ -112,6 +113,8 @@ public VXKmsKeyList searchKeys(HttpServletRequest request, 
String repoName) thro
 
         try {
             providers = getKMSURL(repoName);
+        } catch (WebApplicationException e) {
+            throw e;

Review Comment:
   The empty rethrow is intentional. validateProviderUrl already logs the 
rejection at warn, then throws INVALID_INPUT_DATA. WebApplicationException 
extends Exception, so without this catch the existing handler would log it as a 
key-operation failure and replace it with "service not found". A second error 
log here would record an expected rejection as a failure. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to