jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Pitfield (JIRA)" <j...@apache.org>
Subject [jira] Closed: (JCR-512) TCK: AbstractImportXmlTest incorrectly assumes mix:referenceable can be added to created node
Date Fri, 04 Aug 2006 19:55:27 GMT
     [ http://issues.apache.org/jira/browse/JCR-512?page=all ]

David Pitfield closed JCR-512.
------------------------------


> TCK: AbstractImportXmlTest incorrectly assumes mix:referenceable can be added to created
node
> ---------------------------------------------------------------------------------------------
>
>                 Key: JCR-512
>                 URL: http://issues.apache.org/jira/browse/JCR-512
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: test
>            Reporter: David Pitfield
>             Fix For: 1.1
>
>
> isMixRefRespected() assumes that if the NodeTypeManager contains mix:referenceable, addMixin
can be called to add mix:referenceable to a created node.  This assumption is incorrect for
at least two reasons.  First, the created node might already be mix:referenceable, either
because its primary node type is a subtype of mix:referenceable or because the implementation
added mix:referenceable as a mixin type in creating the node.  Second, a repository may restrict
the nodes to which mix:referenceable can be added.  In the extreme case, the repository may
not allow mix:referenceable to be added to any node using addMixin, in which case the only
referenceable nodes would be those which are mix:referenceable by virtue of primary type or
the implementation's adding mix:referenceable as a mixin type at node creation.
> Proposal: test canAddMixin before calling addMixin.

-- 
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

        

Mime
View raw message