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

jcr2spi: transient removal of mandatory item throws ConstraintViolationException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.5
    • Component/s: jackrabbit-jcr2spi
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: