You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Henry Kuijpers (Jira)" <ji...@apache.org> on 2021/05/18 14:59:00 UTC

[jira] [Created] (SLING-10387) JcrModifiableValueMap#remove does not allow jcr:mixinTypes to be removed

Henry Kuijpers created SLING-10387:
--------------------------------------

             Summary: JcrModifiableValueMap#remove does not allow jcr:mixinTypes to be removed
                 Key: SLING-10387
                 URL: https://issues.apache.org/jira/browse/SLING-10387
             Project: Sling
          Issue Type: Bug
            Reporter: Henry Kuijpers


In our codebase, at some point, we decide to either re-write the jcr:mixinTypes property, or remove the jcr:mixinTypes property.

When calling JcrModifiableValueMap#remove, we however get an exception when trying to remove the property (because we deem it to be empty when our desired mixin is removed). Calling `put` with new values works fine, however.

We should update the remove-method to reflect the behavior of the put-method: Support managing jcr:mixinTypes.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)