directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r659843 - /directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/authz/AciAuthorizationInterceptor.java
Date Sat, 24 May 2008 16:02:34 GMT
Author: akarasulu
Date: Sat May 24 09:02:34 2008
New Revision: 659843

URL: http://svn.apache.org/viewvc?rev=659843&view=rev
Log:
fixing index out of bound exception problem dealing with invocations in the AciAuthorizationInterceptor

Modified:
    directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/authz/AciAuthorizationInterceptor.java

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/authz/AciAuthorizationInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/authz/AciAuthorizationInterceptor.java?rev=659843&r1=659842&r2=659843&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/authz/AciAuthorizationInterceptor.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/authz/AciAuthorizationInterceptor.java
Sat May 24 09:02:34 2008
@@ -1126,14 +1126,13 @@
     }
 
 
-    private boolean filter( LdapDN normName, ClonedServerEntry clonedEntry ) throws Exception
+    private boolean filter( Invocation invocation, LdapDN normName, ClonedServerEntry clonedEntry
) throws Exception
     {
         /*
          * First call hasPermission() for entry level "Browse" and "ReturnDN" perm
          * tests.  If we hasPermission() returns false we immediately short the
          * process and return false.
          */
-        Invocation invocation = InvocationStack.getInstance().peek();
         ServerEntry entry = invocation.getProxy().lookup( 
                 new LookupOperationContext( registries, normName ), PartitionNexusProxy.LOOKUP_BYPASS
);
         
@@ -1248,7 +1247,7 @@
             throws Exception
         {
             LdapDN normName = entry.getDn().normalize( atRegistry.getNormalizerMapping()
);
-            return filter( normName, entry );
+            return filter( operationContext.getInvocation(), normName, entry );
         }
     }
 }



Mime
View raw message