You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by Michael Dürig <md...@apache.org> on 2012/09/08 00:34:16 UTC
UniqueIndex missing encoding?
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