]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-3070: Spring sid entries were not using "ROLE_" prefixed role names.
authorRichard Millet <richard.millet@berkeley.edu>
Thu, 28 Oct 2010 08:24:18 +0000 (08:24 +0000)
committerRichard Millet <richard.millet@berkeley.edu>
Thu, 28 Oct 2010 08:24:18 +0000 (08:24 +0000)
services/authorization-mgt/service/src/main/java/org/collectionspace/services/authorization/storage/AuthorizationDelegate.java

index 87519d4363d3971f64edfc7de479dffbe3a2ad55..c03d07099608e23e7c8bb3e793697fed527a23b0 100644 (file)
@@ -87,7 +87,7 @@ public class AuthorizationDelegate {
                 logger.error(msg);
                 throw new DocumentNotFoundException(msg);
             }
-            String[] roles = {rv.getRoleName()};
+            String[] roles = {r.getRoleName()}; //this ensures we're getting the "ROLE" prefix/qualified name
             for (PermissionValue pv : pr.getPermissions()) {
                 Permission p = getPermission(pv.getPermissionId());
                 if (p == null) {