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

Node.removeMixin() should not remove valid items

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9, 1.0, 1.0.1, 1.1, 1.1.1, 1.2.1, 1.2.2, 1.2.3, 1.3, 1.3.1, 1.3.3, 1.3.4, 1.4, core 1.4.1, core 1.4.2, core 1.4.3, core 1.4.4, core 1.4.5, core 1.4.6, core 1.4.8, core 1.4.7, core 1.4.9, 1.5, 1.5.2, 1.5.3, 1.5.4, 1.5.5
    • 1.6, 2.0-alpha3
    • jackrabbit-core
    • None

    Description

      assume you define a mixin like:

      [test] mix

      • aprop (string)
        + anode (nt:base)

      and you add this mixin to a nt:unstructured and add 'anode' and set 'aprop'.
      then a subsequent node.removeMixin("test") will also remove 'anode' and 'aprop' although they are valid by the definition of nt:unstructured.

      imo, the items should only be removed if they become invalid by the definition of the resulting effective node type.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tripod Tobias Bocanegra
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: