You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "angela (JIRA)" <ji...@apache.org> on 2014/08/12 18:03:11 UTC

[jira] [Comment Edited] (OAK-2024) Error when accessing /oak:index/rep:policy/reindex property via JCR

    [ https://issues.apache.org/jira/browse/OAK-2024?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14094221#comment-14094221 ] 

angela edited comment on OAK-2024 at 8/12/14 4:02 PM:
------------------------------------------------------

btw: the problem is not related to the policy node... the same would happen if someone would add another child node below /oak:index which is not unstructured and doesn't allow for random properties to be written... e.g. nt:file or nt:folder... since the parent is nt:unstructured you cannot prevent anybody from doing this :-)

that property 'reindex' is simply not allowed below the rep:policy node (as it wouldn't be allowed below nt:folder) and it doesn't make sense to add it to other nodes than the index definitions.


was (Author: anchela):
btw: the problem is not related to the policy node... the same would happen if someone would add another child node below /oak:index which is not unstructured and doesn't allow for random properties to be written... e.g. nt:file or nt:folder... since the parent is nt:unstructured you cannot prevent anybody from doing this :-)

> Error when accessing /oak:index/rep:policy/reindex property via JCR
> -------------------------------------------------------------------
>
>                 Key: OAK-2024
>                 URL: https://issues.apache.org/jira/browse/OAK-2024
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.1
>            Reporter: Tobias Bocanegra
>            Priority: Critical
>
> {noformat}
> javax.jcr.nodetype.ConstraintViolationException: No matching property definition found for 'reindex'
> 	at org.apache.jackrabbit.oak.plugins.nodetype.EffectiveNodeType.getPropertyDefinition(EffectiveNodeType.java:361)
> 	at org.apache.jackrabbit.oak.plugins.nodetype.ReadOnlyNodeTypeManager.getDefinition(ReadOnlyNodeTypeManager.java:380)
> 	at org.apache.jackrabbit.oak.jcr.session.PropertyImpl$9.perform(PropertyImpl.java:397)
> 	at org.apache.jackrabbit.oak.jcr.session.PropertyImpl$9.perform(PropertyImpl.java:394)
> 	at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:237)
> 	at org.apache.jackrabbit.oak.jcr.session.ItemImpl.perform(ItemImpl.java:113)
> 	at org.apache.jackrabbit.oak.jcr.session.PropertyImpl.getDefinition(PropertyImpl.java:394)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)