Piotr Tajduś created OAK-8571:
---------------------------------
Summary: FullTextSearchImpl.copyOf() - relative path lost in copy
Key: OAK-8571
URL: https://issues.apache.org/jira/browse/OAK-8571
Project: Jackrabbit Oak
Issue Type: Bug
Components: core
Affects Versions: 1.14.0
Reporter: Piotr Tajduś
Property passed in constructor to FullTextSearchImpl is split and stored as
relativePath and propertyName. In method copyOf only propertyName is passed and
relativePath is lost in new instance:
@Override
public AstElement copyOf() {
return new FullTextSearchImpl(selectorName, propertyName,
fullTextSearchExpression);
}
Because of that alternative query may be constrainted by non existing
properties, f.e. instead of CONTAINS([d].[metadane/korespondent/*/*/nazwa] we
have contains([d].[nazwa],
--
This message was sent by Atlassian Jira
(v8.3.2#803003)