Jackrabbit Content Repository
  1. Jackrabbit Content Repository
  2. JCR-3223

Disallow unregistering of node types still (possibly) in use

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.6, 2.2.10
    • Fix Version/s: 2.1.7, 2.2.11, 2.4
    • Component/s: jackrabbit-core
    • Labels:
      None

      Issue Links

        Activity

        Hide
        Jukka Zitting added a comment -

        Thanks!

        Since this accidental "feature" has been out for quite a while in Jackrabbit 2.1 and 2.2, there are probably already users who are relying on this mistaken behavior. To avoid breaking the functionality entirely for such users, I introduced a -DdisableCheckForReferencesInContentException=true feature flag in in trunk revision 1236709 and merged it also to the 2.2 and 2.1 branches. Setting that system property will restore the earlier broken behavior where the exception from checkForReferencesInContent() was disabled.

        Show
        Jukka Zitting added a comment - Thanks! Since this accidental "feature" has been out for quite a while in Jackrabbit 2.1 and 2.2, there are probably already users who are relying on this mistaken behavior. To avoid breaking the functionality entirely for such users, I introduced a -DdisableCheckForReferencesInContentException=true feature flag in in trunk revision 1236709 and merged it also to the 2.2 and 2.1 branches. Setting that system property will restore the earlier broken behavior where the exception from checkForReferencesInContent() was disabled.
        Hide
        Berry van Halderen added a comment -

        Simple fix by aligning code to actual code on trunk.

        Show
        Berry van Halderen added a comment - Simple fix by aligning code to actual code on trunk.
        Hide
        Berry van Halderen added a comment -

        A fix to JCR-2587 never went into the 2.1 and 2.2 branches.

        Show
        Berry van Halderen added a comment - A fix to JCR-2587 never went into the 2.1 and 2.2 branches.

          People

          • Assignee:
            Berry van Halderen
            Reporter:
            Berry van Halderen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:
              Resolved:

              Development