All operations performed by the SlingPostServlet are mutually exclusive. In particular, a request which moves a node or copies a node cannot change or add a property of that node.

For example:

curl -u admin:admin -F ":operation"=move \
  -F ":dest"="/content/anotherpath" \
  -F myprop=newval \
  http://localhost:8080/content/mynode
curl -u admin:admin http://localhost:8080/content/anotherpath.json
# {"myprop":"oldval","jcr:primaryType":"nt:unstructured"}

When I stop to think about it, this seems OK. But since it's not completely obvious at first glance and since ignored properties aren't called out in log messages, would someone with site edit access mind documenting the restriction at "http://sling.apache.org/site/manipulating-content-the-slingpostservlet.html";?

Thanks,
Ray

Reply via email to