jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dürig <mdue...@apache.org>
Subject UniqueIndex missing encoding?
Date Fri, 07 Sep 2012 22:34:16 GMT

Hi,

Shouldn't the the UTF encode value be used as key? That is:

===================================================================
--- 
oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/unique/UniqueIndex.java 
(revision a3bb8d11e68597d0c29d5eeeeb30ebc4ec2c8a11)
+++ 
oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/unique/UniqueIndex.java 
(revision )
@@ -81,7 +81,7 @@
          } catch (UnsupportedEncodingException e) {
              // ignore
          }
-        PropertyState property = state.getProperty(pr.first.getString());
+        PropertyState property = state.getProperty(value);
          if (property != null && !property.isArray()) {
              paths.add(property.getValue().getString());
          }


Michael


Mime
View raw message