jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1393405 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/UserManagerImpl.java
Date Wed, 03 Oct 2012 11:00:44 GMT
Author: angela
Date: Wed Oct  3 11:00:44 2012
New Revision: 1393405

URL: http://svn.apache.org/viewvc?rev=1393405&view=rev
Log:
avoid warning if group-split-size option is missing

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/UserManagerImpl.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/UserManagerImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/UserManagerImpl.java?rev=1393405&r1=1393404&r2=1393405&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/UserManagerImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/user/UserManagerImpl.java
Wed Oct  3 11:00:44 2012
@@ -396,7 +396,7 @@ public class UserManagerImpl extends Pro
      */
     public int getMemberSplitSize() {
         int splitSize = config.getConfigValue(PARAM_GROUP_MEMBERSHIP_SPLIT_SIZE, 0);
-        if (splitSize < 4) {
+        if (splitSize != 0 && splitSize < 4) {
             log.warn("Invalid value {} for {}. Expected integer >= 4", splitSize, PARAM_GROUP_MEMBERSHIP_SPLIT_SIZE);
             splitSize = 0;
         }



Mime
View raw message