jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-34) autoCreate attribute of PropDef instances not serialized
Date Mon, 20 Dec 2004 08:26:13 GMT
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

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) {

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:
If you want more information on JIRA, or have a bug to report see:

View raw message