incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1327021 - /incubator/lcf/trunk/connectors/activedirectory/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/activedirectory/ActiveDirectoryAuthority.java
Date Tue, 17 Apr 2012 09:54:12 GMT
Author: kwright
Date: Tue Apr 17 09:54:11 2012
New Revision: 1327021

URL: http://svn.apache.org/viewvc?rev=1327021&view=rev
Log:
Fix a logic error in rule matching; part of CONNECTORS-460.

Modified:
    incubator/lcf/trunk/connectors/activedirectory/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/activedirectory/ActiveDirectoryAuthority.java

Modified: incubator/lcf/trunk/connectors/activedirectory/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/activedirectory/ActiveDirectoryAuthority.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/connectors/activedirectory/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/activedirectory/ActiveDirectoryAuthority.java?rev=1327021&r1=1327020&r2=1327021&view=diff
==============================================================================
--- incubator/lcf/trunk/connectors/activedirectory/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/activedirectory/ActiveDirectoryAuthority.java
(original)
+++ incubator/lcf/trunk/connectors/activedirectory/connector/src/main/java/org/apache/manifoldcf/authorities/authorities/activedirectory/ActiveDirectoryAuthority.java
Tue Apr 17 09:54:11 2012
@@ -303,7 +303,7 @@ public class ActiveDirectoryAuthority ex
     {
       String suffix = rule.getSuffix();
       if (suffix.length() == 0 || domainPart.toLowerCase().endsWith(suffix.toLowerCase())
&&
-        (suffix.length() == domainPart.length() || domainPart.charAt(domainPart.length()-suffix.length())
== '.'))
+        (suffix.length() == domainPart.length() || domainPart.charAt((domainPart.length()-suffix.length())-1)
== '.'))
       {
         domainController = rule.getDomainControllerName();
         break;



Mime
View raw message