Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-1862

jcr2spi: transient removal of mandatory item throws ConstraintViolationException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4
    • 1.5
    • jackrabbit-jcr2spi
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            angela Angela Schreiber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: