ChinmayHegde24 commented on code in PR #688:
URL: https://github.com/apache/ranger/pull/688#discussion_r2481214243
##########
kms/src/main/java/org/apache/hadoop/crypto/key/kms/server/KMSMDCFilter.java:
##########
@@ -70,15 +78,32 @@ public void doFilter(ServletRequest request,
ServletResponse response, FilterCha
DATA_TL.remove();
UserGroupInformation ugi =
HttpUserGroupInformation.get();
- String method = ((HttpServletRequest)
request).getMethod();
- StringBuffer requestURL = ((HttpServletRequest)
request).getRequestURL();
- String queryString = ((HttpServletRequest)
request).getQueryString();
+ String method = req.getMethod();
+ StringBuffer requestURL = req.getRequestURL();
+ String queryString = req.getQueryString();
+
+ // Extract operation from query parameters if present
Review Comment:
Handled
--
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]