Author: tomekr
Date: Tue Mar 13 19:18:05 2018
New Revision: 1826666

URL: http://svn.apache.org/viewvc?rev=1826666&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/RepositoryUpgrade.java

Modified: 
jackrabbit/oak/trunk/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/RepositoryUpgrade.java
URL: 
http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/RepositoryUpgrade.java?rev=1826666&r1=1826665&r2=1826666&view=diff
==============================================================================
--- 
jackrabbit/oak/trunk/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/RepositoryUpgrade.java
 (original)
+++ 
jackrabbit/oak/trunk/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/RepositoryUpgrade.java
 Tue Mar 13 19:18:05 2018
@@ -1019,7 +1019,7 @@ public class RepositoryUpgrade {
     }
 
     private boolean nameMayBeTooLong(String name) {
-        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