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

Reply via email to