[
https://issues.apache.org/jira/browse/SLING-784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alexander Saar updated SLING-784:
---------------------------------
Attachment: post-servlet-change-mixins.diff
the patch adds handling of mixin updates to the modify operation. not sure if
it's better to do this in the update handler, but it was necessary to process
the mixins first to prevent constraint violation. and because they are not
normal properties I decided to do it there.
also mixins are just (re-)added to a node. maybe it would be better to remove
all mixins first and then add just the defined mixins. or even better allow to
delete mixins using something like: ./jcr:mixinty...@delete=my:mixin
> SlingPostServlet does not allow setting mixin types on existing nodes
> ---------------------------------------------------------------------
>
> Key: SLING-784
> URL: https://issues.apache.org/jira/browse/SLING-784
> Project: Sling
> Issue Type: Improvement
> Components: Servlets Post
> Reporter: Alexander Saar
> Attachments: post-servlet-change-mixins.diff
>
>
> the current implementation of the sling POST servlet allows to specify mixin
> node types when a new node is created, but it is not possible to add/change
> mixin node types of existing nodes. I suggest to add this funtionality
> because it is a common use case that you want to set properties which are
> defined in mixin node types (eg adding some meta data to a file).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.