jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "angela (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-1862) jcr2spi: transient removal of mandatory item throws ConstraintViolationException
Date Mon, 17 Nov 2008 14:31:46 GMT
jcr2spi: transient removal of mandatory item throws ConstraintViolationException
--------------------------------------------------------------------------------

                 Key: JCR-1862
                 URL: https://issues.apache.org/jira/browse/JCR-1862
             Project: Jackrabbit
          Issue Type: Bug
          Components: jackrabbit-jcr2spi
            Reporter: angela


reported by tobi:

the transient removal of a mandatory (non-protected) item immediately fails. 
instead the check should be postponed until the save() call, since it would be perfectly legal
to remove the mandatory item and then re-add it.

suggested fix:
ItemStateValidator#checkRemoveConstraints should only check for protection and ignore mandatory
definitions.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message