jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (JCR-2480) Property definition not properly initialized
Date Fri, 23 Sep 2011 14:36:26 GMT

     [ https://issues.apache.org/jira/browse/JCR-2480?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jukka Zitting resolved JCR-2480.
--------------------------------

    Resolution: Duplicate

> Property definition not properly initialized
> --------------------------------------------
>
>                 Key: JCR-2480
>                 URL: https://issues.apache.org/jira/browse/JCR-2480
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core, jackrabbit-spi-commons
>    Affects Versions: 2.0-beta6
>            Reporter: Thomas Draier
>            Priority: Minor
>
> Hi,
> When reading property definitions from the repository, the "defaultValues" is not properly
initialized by the NodeTypeReader , if no default values has been set . The defaultValues
keeps a null value instead of an empty array. This causes problems when calling NodeTypeManager.regiterNodeTypes()
- the property definitions are always seen as modified even they don't . A trivial modification
is detected and definitions is rewritten everytime. Passing null as default values for the
new definitions does not work, as it's replaced by an empty array.
> Modifying the initialization of the QPropertyDefinitionBuilder.defaultValues with an
empty list , as it's done for valueConstraints, fixes the issues
> regards

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message