[ https://issues.apache.org/jira/browse/JCR-2283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marcel Reutegger updated JCR-2283: ---------------------------------- Attachment: JCR-2283.patch The proposed change does the same as before but initializes the default value in NodeTypeInstanceHandler.computeSystemGeneratedPropertyValues(). > Incorrect CND for mix:etag > -------------------------- > > Key: JCR-2283 > URL: https://issues.apache.org/jira/browse/JCR-2283 > Project: Jackrabbit Content Repository > Issue Type: Bug > Components: jackrabbit-core, jackrabbit-jcr-tests > Reporter: Marcel Reutegger > Priority: Minor > Attachments: JCR-2283.patch > > > Jackrabbit currently defined mix:etag as follows: > [mix:etag] > mixin > // currently has a default value because auto-creation not handled see > JCR-2116 > - jcr:etag (STRING) = '' protected autocreated > I think this violates the spec, which says: > [mix:etag] mixin > - jcr:etag (STRING) protected autocreated > This also affects the predefined node type test in jackrabbit-jcr-tests where > mix-etag.txt is: > NodeTypeName > mix:etag > Supertypes > [] > IsMixin > true > HasOrderableChildNodes > false > PrimaryItemName > null > PropertyDefinition > Name jcr:etag > RequiredType STRING > DefaultValues [] > AutoCreated true > Mandatory false > OnParentVersion COPY > Protected true > Multiple false > but should rather be: > NodeTypeName > mix:etag > Supertypes > [] > IsMixin > true > HasOrderableChildNodes > false > PrimaryItemName > null > PropertyDefinition > Name jcr:etag > RequiredType STRING > DefaultValues null <=== > AutoCreated true > Mandatory false > OnParentVersion COPY > Protected true > Multiple false -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.