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] [Resolved] (JCR-3452) Modified property and child node definition are rejected
Date Fri, 30 Nov 2012 15:20:00 GMT

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

Stefan Guggisberg resolved JCR-3452.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.6
         Assignee: Stefan Guggisberg

fixed in svn r1415685.

trivial modifications
- adding/removing nt:base as requiredPrimaryType constraint 
- making a single-valued property multi-valued 
- changing a property's requiredType constraint to UNDEFINED
                
> Modified property and child node definition are rejected
> --------------------------------------------------------
>
>                 Key: JCR-3452
>                 URL: https://issues.apache.org/jira/browse/JCR-3452
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>    Affects Versions: 2.5.2
>            Reporter: Tom Quellenberg
>            Assignee: Stefan Guggisberg
>            Priority: Minor
>             Fix For: 2.6
>
>         Attachments: patch.txt
>
>
> NodeTypeDefDiff identifies modified properties and child nodes by QNodeDefinitionId and
QPropertyDefinitionId. Both classes have their own equals and hashCode methods. Thus, properties
and child nodes with trivial changes (changed required types or isMultiple) are always considered
as added and removed ( = major change) and never as changed.
> Additional, the check for required child node types seems wrong to me: adding additional
(alternative) constraints are considered as major change. I think, the opposite is true: removing
node types from the list of required types is a major change (there may exist child nodes
of the removed type), adding alternative constraints is a trivial change.
> There is one more change to the required child node types, which can easily be checked:
setting the required type to nt:base. This should always be possible.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message