You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by Michael Yin <yi...@gmail.com> on 2010/03/30 23:31:33 UTC

SlingPostServlet saves operations that throw an error in the log but return 200 responses

I'm on a fairly recent trunk build, and when I do save operations with the
sling post servlet, I'm  getting OK responses back from the servlet but I
see errors in the sling log, and trying to retrieve the node again shows
that the changes did not happen.

Here is one of the stack traces in the log

org.apache.sling.servlets.post.impl.operations.ModifyOperation Exception
during response processing. javax.jcr.nodetype.ConstraintViolationException:
Unable to perform operation. Node is protected.
at
org.apache.jackrabbit.core.ItemValidator.checkCondition(ItemValidator.java:303)
at
org.apache.jackrabbit.core.ItemValidator.checkModify(ItemValidator.java:277)
at
org.apache.jackrabbit.core.PropertyImpl.checkSetValue(PropertyImpl.java:235)
at org.apache.jackrabbit.core.PropertyImpl.setValue(PropertyImpl.java:690)
at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:2418)
at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:1560)
at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:2139)
at
org.apache.sling.servlets.post.impl.helper.SlingPropertyValueHandler.setPropertyAsIs(SlingPropertyValueHandler.java:278)
at
org.apache.sling.servlets.post.impl.helper.SlingPropertyValueHandler.setProperty(SlingPropertyValueHandler.java:106)
at
org.apache.sling.servlets.post.impl.operations.ModifyOperation.writeContent(ModifyOperation.java:432)
at
org.apache.sling.servlets.post.impl.operations.ModifyOperation.doRun(ModifyOperation.java:100)
at
org.apache.sling.servlets.post.AbstractSlingPostOperation.run(AbstractSlingPostOperation.java:87)
at
org.apache.sling.servlets.post.impl.SlingPostServlet.doPost(SlingPostServlet.java:178)


-mike