ChinmayHegde24 opened a new pull request, #1077:
URL: https://github.com/apache/ranger/pull/1077

   Incorrect response seen when admin tries to create a key even though he 
doesn't have permission
   
   curl -ik -u admin:Admin123 --header Accept:application/json -H 
Content-Type:application/json -K POST 
'[https://<host>:6182/service/keys/key?provider=kmsdev](https://ccycloud-1.ch-102949.root.comops.site:6182/service/keys/key?provider=kmsdev)'
 -d 
'{"name":"testkey1","cipher":"AES/CTR/NoPadding","length":"128","attributes":{}}'
   
   HTTP/1.1 200
   Set-Cookie; Path=/; Secure; HttpOnly
   X-Frame-Options: DENY
   ...
   ...
   ...
   
   {"length":256,"versions":0}
   Here the kmsdev provider is not there but still we get response as 200 this 
issue is seen in get and other api's as well
   
   Fix: Fix is made to ensure that exception doesn't get swallowed and 
propagates to caller in KmsKeyMgr
   and gives 400 Bad request when invalid provider is given


-- 
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