[ 
http://issues.apache.org/jira/browse/JCR-327?page=comments#action_12367695 ] 

Michael Daglian commented on JCR-327:
-------------------------------------

Hi Marcel,

The fix does indeed work for custom types where the mixin is explicitly in the 
hierarchy. However, I've run into an issue now where type queries do not seem 
to locate mixins with other mixins as supertypes when querying for the 
supertype mixin. More concretely, using the type definitions attached, if I add 
nt:TestMixin to a node then the node responds true to isNodeType for 
nt:TestMixin and mix:versionable. Querying directly for nt:TestMixin using the 
element function also works. However, querying for mix:versionable does not 
seem to work.

> Mixins as supertypes do not appear to be queryable
> --------------------------------------------------
>
>          Key: JCR-327
>          URL: http://issues.apache.org/jira/browse/JCR-327
>      Project: Jackrabbit
>         Type: Bug
>   Components: query, nodetype
>     Versions: 0.9
>     Reporter: Michael Daglian
>     Assignee: Marcel Reutegger
>      Fix For: 1.0
>  Attachments: MixinTypesTest.java, ntdefs.cnd
>
> When creating custom nodetypes that contain mixins as the supertype, nodes of 
> the custom type do not appear to be queryable when using statements of the 
> form: //element(*, mixin). Attached are a relatively simple JUnit test and 
> compact type definition that seem to illustrate the problem.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to