[dna-issues] [JBoss JIRA] Resolved: (DNA-350) RepoistoryNodeTypeManager.findBest*Definition Returns Wrong Definition for Protected Items if skipProtected is True.

Randall Hauch (JIRA) jira-events at lists.jboss.org
Mon Apr 13 15:31:35 EDT 2009


     [ https://jira.jboss.org/jira/browse/DNA-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Randall Hauch resolved DNA-350.
-------------------------------

    Fix Version/s: 0.4
       Resolution: Done
         Assignee: Randall Hauch


Applied the patch.

> RepoistoryNodeTypeManager.findBest*Definition Returns Wrong Definition for Protected Items if skipProtected is True.
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: DNA-350
>                 URL: https://jira.jboss.org/jira/browse/DNA-350
>             Project: DNA
>          Issue Type: Bug
>          Components: JCR
>    Affects Versions: 0.3
>            Reporter: Brian Carothers
>            Assignee: Randall Hauch
>            Priority: Minor
>             Fix For: 0.4
>
>         Attachments: DNA-350.patch
>
>
> Currently, the RepositoryNodeTypeManager.findBest{Property|ChildNode}Definition methods have the line:
>                     if (skipProtected && definition.isProtected()) continue;
> The problem arises in that SessionCache.NodeEditor uses the existence of a definition as the indicator that a property can be set (and, respectively, that a child node can be added).  Node types (e.g. nt:unstructured), that have a protected property (e.g., jcr:primaryType) and a residual property will return the residual definition for findBestPropertyDefinition for the property jcr:primaryType if skipProtected = true.  In practice, this means that the protected property will be writable, which violates the spec and causes two TCK tests that test this condition to fail.

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

        



More information about the dna-issues mailing list