[
https://issues.apache.org/jira/browse/SLING-2775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13645674#comment-13645674
]
Carsten Ziegeler commented on SLING-2775:
-----------------------------------------
Instead of simply ignoring a potential exception when setting the property -
which will fail with Oak (or other JCR implementations), I went to long way and
do a nodetype check, find the property definiton for the auto property and see
if it is managed by the repository. If so, the value is ignored.
Revision: 1477692
> Setting of auto properties depends on specific Jackrabbit behviour
> ------------------------------------------------------------------
>
> Key: SLING-2775
> URL: https://issues.apache.org/jira/browse/SLING-2775
> Project: Sling
> Issue Type: Bug
> Components: Servlets
> Affects Versions: Servlets Post 2.2.0
> Reporter: Carsten Ziegeler
> Fix For: Servlets Post 2.3.0
>
>
> The post servlet ignores a ConstraintViolationException when trying to set an
> auto property (SlingPropertyValueHandler#setProperty method. This has been
> introduced by SLING-1619
> According to SLING-2763 this is specific Jackrabbit behaviour and might fail
> with other implementations (e.g. Oak) as the check might not occur when
> setting the property but when saving.
> Looking at the comments of SLING-1619, I'm not sure if adding this check for
> the ConstraintViolationException was the right thing to do anyway.
--
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