Closed ncautotest closed 2 years ago
doSetProperty(key, value) does not accept slashes in the key
doSetProperty(key, value)
aecu.contentUpgradeBuilder() .forDescendantResourcesOf("/content/sites/en") .filterByProperty("sling:resourceType", "weretail/pagetypes/somepage") .doSetProperty("jcr:content/meta/validFrom", Date.from(ZonedDateTime.now().toInstant())) .printPath() .dryRun()
java.lang.IllegalArgumentException: Invalid key: jcr:content/meta/validFrom
Slashes are accepted in keys and the given value is set on the property. When the intermediary nodes do not exist then they are created automatically as jcr:primaryType=nt:unstructured.
jcr:primaryType=nt:unstructured
Method change:
Description
doSetProperty(key, value)
does not accept slashes in the keyExample:
Actual Result
Expected Result
Slashes are accepted in keys and the given value is set on the property. When the intermediary nodes do not exist then they are created automatically as
jcr:primaryType=nt:unstructured
.