You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Stefan Guggisberg (JIRA)" <ji...@apache.org> on 2004/12/20 13:16:17 UTC

[jira] Resolved: (JCR-34) autoCreate attribute of PropDef instances not serialized

     [ http://nagoya.apache.org/jira/browse/JCR-34?page=history ]
     
Stefan Guggisberg resolved JCR-34:
----------------------------------

    Resolution: Fixed

fixed in rev. 122847

> autoCreate attribute of PropDef instances not serialized
> --------------------------------------------------------
>
>          Key: JCR-34
>          URL: http://nagoya.apache.org/jira/browse/JCR-34
>      Project: Jackrabbit
>         Type: Bug
>  Environment: Jackrabbit SVN Rev. 122827
>     Reporter: Felix Meschberger
>     Assignee: Stefan Guggisberg

>
> When a property of custom node type is defined to be autoCreate=true, this fact is not serialized to the custom_nodetypes.xml file. Digging into the source revealse the NodeTypeDefStore.writeDef method to not write the autoCreate attribute:
>    // autoCreate
>    String autoCreate = elem.getAttributeValue(AUTOCREATE_ATTRIBUTE);
>    if (autoCreate != null && autoCreate.length() > 0) {
>      pd.setAutoCreate(Boolean.valueOf(autoCreate).booleanValue());
>    }
> This seems to be a remains of a copy-paste procedure :-) with the correct code most probably being something like
>    // autoCreate
>    elem.setAttribute(AUTOCREATE_ATTRIBUTE, Boolean.toString(pd.isAutoCreate()));

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira