Skip to content

Commit 8c15b6b

Browse files
author
Dhaval Shah
committed
RANGER-5741 : Refactoring for Ranger KMS API
1 parent efe3fa6 commit 8c15b6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • kms/src/main/java/org/apache/hadoop/crypto/key/kms/server

kms/src/main/java/org/apache/hadoop/crypto/key/kms/server/KMS.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ public Response getKeyVersion(@PathParam("versionName") final String versionName
458458

459459
checkNotEmpty(versionName, "versionName");
460460

461-
assertAccess(Type.GET, user, KMSOp.GET_KEY_VERSION, getClientIp(request));
461+
assertAccess(Type.GET, user, KMSOp.GET_KEY_VERSION, KeyProvider.getBaseName(versionName), getClientIp(request));
462462

463463
KeyVersion keyVersion = user.doAs((PrivilegedExceptionAction<KeyVersion>) () -> provider.getKeyVersion(versionName));
464464

0 commit comments

Comments
 (0)