You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "McComsey, Doug" <Do...@ca.com> on 2005/06/02 01:31:54 UTC

Question on protected property of nt:versionHistory's residual node

In section 6.7.22.13 of jsr170-0.16.3-pfd.pdf (nt:versionHistory) on page 149, there are three child node definitions. The first two are autocreated, mandatory and protected. The third is a residual definition that is neither autocreated nor mandatory and therefore I feel it should NOT be protected. In the spec, however, it is defined as protected.

Which is correct?

Note: This came up because I am failing the testResidualAndLegalType test (due to the protection) in the CanAddChildNodeCallWithNodeTypeTest class. This test calls canAddChildNode on an nt:versionHistory NodeType. Why isn't everybody failing this test?

Regards,
Doug
 
Doug McComsey
Computer Associates
doug.mccomsey@ca.com



Re: Question on protected property of nt:versionHistory's residual node

Posted by Tobias Strasser <to...@gmail.com>.
hi,
the entire jcr:versionStorage is considered as read only and therefor
nt:version, nt:versionHistory etc. are protected.

On 6/2/05, McComsey, Doug <Do...@ca.com> wrote:
> In section 6.7.22.13 of jsr170-0.16.3-pfd.pdf (nt:versionHistory) on page 149, there are three child node definitions. The first two are autocreated, mandatory and protected. The third is a residual definition that is neither autocreated nor mandatory and therefore I feel it should NOT be protected. In the spec, however, it is defined as protected.
> 
> Which is correct?
> 
> Note: This came up because I am failing the testResidualAndLegalType test (due to the protection) in the CanAddChildNodeCallWithNodeTypeTest class. This test calls canAddChildNode on an nt:versionHistory NodeType. Why isn't everybody failing this test?
> 
> Regards,
> Doug
> 
> Doug McComsey
> Computer Associates
> doug.mccomsey@ca.com
> 
> 
> 


-- 
------------------------------------------< tobias.strasser@day.com >---
Tobias Strasser, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97 
-----------------------------------------------< http://www.day.com >---