You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Kamil Nezval (Created) (JIRA)" <ji...@apache.org> on 2011/10/13 14:33:11 UTC

[jira] [Created] (JCR-3112) NodeTypeDefDiff.PropDefDiff.init() constraints change check bugs

NodeTypeDefDiff.PropDefDiff.init() constraints change check bugs
----------------------------------------------------------------

                 Key: JCR-3112
                 URL: https://issues.apache.org/jira/browse/JCR-3112
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: jackrabbit-spi-commons
    Affects Versions: 2.3.1
            Reporter: Kamil Nezval


Two bugs have been found in NodeTypeDefDiff.PropDefDiff.init() when try to modify property constraints of an already registered node type:

1) according to the java doc it should be possible to remove all constraints from a property, but it is not (marked as a MAJOR change).
 
2) it's allowed (TRIVIAL) to set a constraint to a property that had no constraint at all before, which is wrong, because it could affect the consistency of existing repository content.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (JCR-3112) NodeTypeDefDiff.PropDefDiff.init() constraints change check bugs

Posted by "Stefan Guggisberg (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-3112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Guggisberg resolved JCR-3112.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3.2

fixed in svn r1182929
                
> NodeTypeDefDiff.PropDefDiff.init() constraints change check bugs
> ----------------------------------------------------------------
>
>                 Key: JCR-3112
>                 URL: https://issues.apache.org/jira/browse/JCR-3112
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-spi-commons
>    Affects Versions: 2.3.1
>            Reporter: Kamil Nezval
>             Fix For: 2.3.2
>
>
> Two bugs have been found in NodeTypeDefDiff.PropDefDiff.init() when try to modify property constraints of an already registered node type:
> 1) according to the java doc it should be possible to remove all constraints from a property, but it is not (marked as a MAJOR change).
>  
> 2) it's allowed (TRIVIAL) to set a constraint to a property that had no constraint at all before, which is wrong, because it could affect the consistency of existing repository content.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (JCR-3112) NodeTypeDefDiff.PropDefDiff.init() constraints change check bugs

Posted by "Jukka Zitting (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-3112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting updated JCR-3112:
-------------------------------

    Affects Version/s: 2.2.9
        Fix Version/s: 2.2.10

Merged to the 2.2 branch in revision 1202198.
                
> NodeTypeDefDiff.PropDefDiff.init() constraints change check bugs
> ----------------------------------------------------------------
>
>                 Key: JCR-3112
>                 URL: https://issues.apache.org/jira/browse/JCR-3112
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-spi-commons
>    Affects Versions: 2.2.9, 2.3.1
>            Reporter: Kamil Nezval
>             Fix For: 2.2.10, 2.3.2
>
>
> Two bugs have been found in NodeTypeDefDiff.PropDefDiff.init() when try to modify property constraints of an already registered node type:
> 1) according to the java doc it should be possible to remove all constraints from a property, but it is not (marked as a MAJOR change).
>  
> 2) it's allowed (TRIVIAL) to set a constraint to a property that had no constraint at all before, which is wrong, because it could affect the consistency of existing repository content.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira