From commits-return-14456-apmail-directory-commits-archive=directory.apache.org@directory.apache.org Thu Jul 05 08:57:23 2007 Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 66619 invoked from network); 5 Jul 2007 08:57:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jul 2007 08:57:22 -0000 Received: (qmail 5107 invoked by uid 500); 5 Jul 2007 08:57:24 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 5076 invoked by uid 500); 5 Jul 2007 08:57:24 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 5065 invoked by uid 99); 5 Jul 2007 08:57:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jul 2007 01:57:24 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jul 2007 01:57:21 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 1A10E1A981A; Thu, 5 Jul 2007 01:57:01 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r553423 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java Date: Thu, 05 Jul 2007 08:57:00 -0000 To: commits@directory.apache.org From: ersiner@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070705085701.1A10E1A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ersiner Date: Thu Jul 5 01:56:59 2007 New Revision: 553423 URL: http://svn.apache.org/viewvc?view=rev&rev=553423 Log: Fixed the way to determine whether an attribute has only one value. Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java?view=diff&rev=553423&r1=553422&r2=553423 ============================================================================== --- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java (original) +++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/AuthorizationService.java Thu Jul 5 01:56:59 2007 @@ -579,7 +579,7 @@ if ( entryAttr != null ) { // If there is only one value remaining in the attribute ... - if ( entryAttr.get( 1 ) == null ) + if ( entryAttr.size() == 1 ) { // ... we also need to check if removing the attribute at all is permitted engine.checkPermission( proxy, userGroups, principalDn, principal.getAuthenticationLevel(), name,