From 91fdf0048df4c43fe3b7412ccb7f862eab5f7669 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Wed, 02 Feb 2011 20:45:14 +0000
Subject: [PATCH] Fix issue OPENDJ-24: Fix OpenDS issue 4583: during a search op, ACI with targetfilter and targetattrs gets evaluated wrongly  https://bugster.forgerock.org/jira/browse/OPENDJ-24

---
 opends/src/server/org/opends/server/authorization/dseecompat/AciLDAPOperationContainer.java |   44 +-------------------------------------------
 1 files changed, 1 insertions(+), 43 deletions(-)

diff --git a/opends/src/server/org/opends/server/authorization/dseecompat/AciLDAPOperationContainer.java b/opends/src/server/org/opends/server/authorization/dseecompat/AciLDAPOperationContainer.java
index 5840077..45b1454 100644
--- a/opends/src/server/org/opends/server/authorization/dseecompat/AciLDAPOperationContainer.java
+++ b/opends/src/server/org/opends/server/authorization/dseecompat/AciLDAPOperationContainer.java
@@ -23,11 +23,11 @@
  *
  *
  *      Copyright 2008-2009 Sun Microsystems, Inc.
+ *      Portions Copyright 2011 ForgeRock AS
  */
 
 package org.opends.server.authorization.dseecompat;
 
-import java.util.List;
 import org.opends.server.core.*;
 import org.opends.server.types.*;
 import org.opends.server.workflowelement.localbackend.*;
@@ -39,17 +39,6 @@
  */
 public class AciLDAPOperationContainer extends AciContainer  {
 
-    /*
-     * The entry to be returned if this is a LDAP search.
-     */
-    private SearchResultEntry searchEntry;
-
-    /*
-     * The list of modifications if this operation is a LDAP
-     * modify.
-     */
-    private List<Modification>  modifications;
-
     /**
      * Constructor interface for all currently supported LDAP operations.
      * @param operation The compare operation to evaluate.
@@ -60,7 +49,6 @@
       int rights, Entry entry)
     {
       super(operation, rights, entry);
-      this.searchEntry = new SearchResultEntry(entry);
     }
 
 
@@ -149,7 +137,6 @@
         int rights)
     {
         super(operation, rights, operation.getCurrentEntry());
-        this.modifications=operation.getModifications();
     }
 
     /**
@@ -163,33 +150,4 @@
                                      Entry entry) {
         super(operation, rights,  entry);
     }
-
-    /**
-     * Constructor interface for the LDAP search operation.
-     * @param operation The search operation.
-     * @param rights The rights of a search operation.
-     * @param entry The entry to be evaluated for this search.
-     */
-    public AciLDAPOperationContainer(SearchOperation operation,
-        int rights,
-        SearchResultEntry entry)
-    {
-        super(operation, rights,  entry);
-        this.searchEntry = entry;
-    }
-
-    /**
-     * Retrieve the search result entry of the search operation.
-     * @return The search result entry.
-     */
-    public SearchResultEntry getSearchResultEntry() {
-        return this.searchEntry;
-    }
-
-    /** Retrieve the list of modifications if this is a LDAP modify.
-     * @return The list of LDAP modifications to made on the resource entry.
-     */
-    public  List<Modification>  getModifications() {
-        return modifications;
-    }
 }

--
Gitblit v1.10.0