You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by David Sanders <da...@yahoo.com> on 2006/07/14 07:49:40 UTC

TCK test's validation of nt:hierarchyNode

This concerns the JSR-170 TCK at
http://jcp.org/aboutJava/communityprocess/final/jsr170/index.html.

The TCK's
src/java/org/apache/jackrabbit/test/api/nodetype/spec/nt-hierarchyNode.txt
is used by a TCK test to validate a repository's
predefined nt:hierarchyNode nodetype.

The above .txt file causes a test to expect the
jcr:created property def to be mandatory true.
But, the JSR 170.1.0.1 spec says that property is not
mandatory.

src/java/org/apache/jackrabbit/test/api/nodetype/spec/nt-hierarchyNode.txt
-----------------------------------------------------
NodeTypeName
  nt:hierarchyNode
...
PropertyDefinition
  Name jcr:created
  RequiredType DATE
  ValueConstraints []
  DefaultValues null
  AutoCreated true
  Mandatory true
  OnParentVersion INITIALIZE
  Protected true
  Multiple false


Spec
----
NodeTypeName
nt:hierarchyNode
...
PropertyDefinition
Name jcr:created
RequiredType DATE
ValueConstraints []
DefaultValues null
AutoCreated true
Mandatory false
OnParentVersion INITIALIZE
Protected true
Multiple false


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: TCK test's validation of nt:hierarchyNode

Posted by Stefan Guggisberg <st...@gmail.com>.
hi david,

On 7/14/06, David Sanders <da...@yahoo.com> wrote:
> This concerns the JSR-170 TCK at
> http://jcp.org/aboutJava/communityprocess/final/jsr170/index.html.
>
> The TCK's
> src/java/org/apache/jackrabbit/test/api/nodetype/spec/nt-hierarchyNode.txt
> is used by a TCK test to validate a repository's
> predefined nt:hierarchyNode nodetype.
>
> The above .txt file causes a test to expect the
> jcr:created property def to be mandatory true.
> But, the JSR 170.1.0.1 spec says that property is not
> mandatory.

you're absolutely right, that's a bug in the TCK. thanks for reporting
this issue.
i created a jira issue: http://issues.apache.org/jira/browse/JCR-479

cheers
stefan


>
> src/java/org/apache/jackrabbit/test/api/nodetype/spec/nt-hierarchyNode.txt
> -----------------------------------------------------
> NodeTypeName
>   nt:hierarchyNode
> ...
> PropertyDefinition
>   Name jcr:created
>   RequiredType DATE
>   ValueConstraints []
>   DefaultValues null
>   AutoCreated true
>   Mandatory true
>   OnParentVersion INITIALIZE
>   Protected true
>   Multiple false
>
>
> Spec
> ----
> NodeTypeName
> nt:hierarchyNode
> ...
> PropertyDefinition
> Name jcr:created
> RequiredType DATE
> ValueConstraints []
> DefaultValues null
> AutoCreated true
> Mandatory false
> OnParentVersion INITIALIZE
> Protected true
> Multiple false
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>