[
https://issues.apache.org/jira/browse/SLING-2761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13589461#comment-13589461
]
Felix Meschberger commented on SLING-2761:
------------------------------------------
I don't think this test is wrong: If you look at the code, this pre-fills a Map
of request parameters which are sent to the POST Servlet. This servlet walks
the parameters and properly handles the jcr:mixinTypes by calling the
appropriate addMixin and removeMixin methods.
See
http://svn.apache.org/viewvc/sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/ModifyOperation.java?view=markup
and
http://svn.apache.org/viewvc/sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/impl/operations/AbstractCreateOperation.java?view=markup
> Illegal change of protected property in PostServletVersionableTest
> ------------------------------------------------------------------
>
> Key: SLING-2761
> URL: https://issues.apache.org/jira/browse/SLING-2761
> Project: Sling
> Issue Type: Bug
> Components: Testing
> Reporter: Alex Parvulescu
>
> While running some of the integration tests using Oak as a repository impl, I
> ran into some ConstraintViolationExceptions with the
> PostServletVersionableTest.
> This uncovered an issue in Jackrabbit JCR-3526 where you can change protected
> properties on new items, which is in fact considered illegal.
> Coming back to the PostServletVersionableTest, the test setup uses this trick
> to set up the content and I think it should be changed.
> On a more general note fixing JCR-3526 could turn up even more problems that
> the aforementioned test, so it would be nice to have some more thoughts on
> this on how big the problem could really be.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira