ncautotest edited a comment on issue #2: SLING-8375 - Allow import if data 
contains protected properties
URL: 
https://github.com/apache/sling-org-apache-sling-jcr-contentloader/pull/2#issuecomment-493405270
 
 
   @kwin: Thanks! `canSetProperty()` is exactly what I was looking for. Will 
update the PR once I finish fixing the related unit test which is now breaking 
since the method invocation chain has changed.
   
   Specifically, I'm finding that 
`org.apache.sling.jcr.contentloader.internal.DefaultContentCreatorTest#testCreateDateProperty()`
 is now failing because `node.getPrimaryNodeType().canSetProperty(name, 
dateValue)` is returning `false`.
   
   where 
   `name=dateProp` 
   and
    `Value dateValue = 
node.getSession().getValueFactory().createValue((Calendar) someValue);`.
   
   Is this supposed to work like this?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to