Author: tomekr
Date: Tue Mar 13 19:14:03 2018
New Revision: 1826664

URL: http://svn.apache.org/viewvc?rev=1826664&view=rev
Log:
OAK-7335: oak-upgrade long name filter should consider the path length

Maximum length of a character in Java is 3 bytes.

Modified:
    
jackrabbit/oak/trunk/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/nodestate/NameFilteringNodeState.java

Modified: 
jackrabbit/oak/trunk/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/nodestate/NameFilteringNodeState.java
URL: 
http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/nodestate/NameFilteringNodeState.java?rev=1826664&r1=1826663&r2=1826664&view=diff
==============================================================================
--- 
jackrabbit/oak/trunk/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/nodestate/NameFilteringNodeState.java
 (original)
+++ 
jackrabbit/oak/trunk/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/nodestate/NameFilteringNodeState.java
 Tue Mar 13 19:14:03 2018
@@ -78,7 +78,7 @@ public class NameFilteringNodeState exte
     private boolean isNameTooLong(@Nonnull String name) {
         // OAK-1589: maximum supported length of name for DocumentNodeStore
         // is 150 bytes. Skip the sub tree if the the name is too long
-        if (name.length() <= Utils.NODE_NAME_LIMIT / 4) {
+        if (name.length() <= Utils.NODE_NAME_LIMIT / 3) {
             return false;
         }
         if (name.getBytes(Charsets.UTF_8).length <= Utils.NODE_NAME_LIMIT) {


Reply via email to