You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Michael Daglian (JIRA)" <ji...@apache.org> on 2006/02/23 15:55:45 UTC
[jira] Created: (JCR-327) Mixins as supertypes do not appear to be
queryable
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: nodetype, query
Versions: 0.9
Reporter: Michael Daglian
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
[jira] Updated: (JCR-327) Mixins as supertypes do not appear to be
queryable
Posted by "Michael Daglian (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-327?page=all ]
Michael Daglian updated JCR-327:
--------------------------------
Attachment: MixinTypesTest.java
ntdefs.cnd
> 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: nodetype, query
> Versions: 0.9
> Reporter: Michael Daglian
> 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
[jira] Commented: (JCR-327) Mixins as supertypes do not appear to
be queryable
Posted by "Michael Daglian (JIRA)" <ji...@apache.org>.
[ 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
[jira] Resolved: (JCR-327) Mixins as supertypes do not appear to be
queryable
Posted by "Marcel Reutegger (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-327?page=all ]
Marcel Reutegger resolved JCR-327:
----------------------------------
Fix Version: 1.0
Resolution: Fixed
There is indeed a bug in the query builder that creates the lucene query tree from the JCR query statement.
Fixed in svn revision: 380766.
Thank you for reporting this issue.
Could you please check if this fix works for you and give a quick feedback? I did only check it with existing predefined node types, but it should also works for any custom defined node types.
> 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
[jira] Reopened: (JCR-327) Mixins as supertypes do not appear to be
queryable
Posted by "Marcel Reutegger (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-327?page=all ]
Marcel Reutegger reopened JCR-327:
----------------------------------
You are right. I'll look into it asap.
> 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
[jira] Assigned: (JCR-327) Mixins as supertypes do not appear to be
queryable
Posted by "Marcel Reutegger (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-327?page=all ]
Marcel Reutegger reassigned JCR-327:
------------------------------------
Assign To: Marcel Reutegger
> 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: nodetype, query
> Versions: 0.9
> Reporter: Michael Daglian
> Assignee: Marcel Reutegger
> 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
[jira] Resolved: (JCR-327) Mixins as supertypes do not appear to be
queryable
Posted by "Marcel Reutegger (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-327?page=all ]
Marcel Reutegger resolved JCR-327:
----------------------------------
Resolution: Fixed
Ok, second attempt ;)
The query builder now also searches for mixins that are derived from the node type in element test.
I've also added a test cases that searches referenceable nodes (o.a.j.core.MixinTest). The test adds nodes that are made referenceable in three ways:
- implicitly referenceable (node type definition has mix:referenceable as supertype)
- explicitly referenceable (mix:referenceable is set on node instance)
- explicitly referenceable using mixin derived from mix:referenceable
svn revision: 381292
> 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