jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg (JIRA)" <j...@apache.org>
Subject [jira] Closed: (JCR-34) autoCreate attribute of PropDef instances not serialized
Date Mon, 20 Dec 2004 12:16:18 GMT
     [ http://nagoya.apache.org/jira/browse/JCR-34?page=history ]
     
Stefan Guggisberg closed JCR-34:
--------------------------------


> 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


Mime
View raw message