[
https://issues.apache.org/jira/browse/SLING-7616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nicolas Peltier resolved SLING-7616.
------------------------------------
Resolution: Fixed
Fix Version/s: pipes 2.0.4
thanks for your contribution [~bcsott] !
> [Pipes] Use slingPipe/write to create thumbnails.png's
> ------------------------------------------------------
>
> Key: SLING-7616
> URL: https://issues.apache.org/jira/browse/SLING-7616
> Project: Sling
> Issue Type: Improvement
> Components: Tooling
> Affects Versions: pipes 2.0.2
> Reporter: Björn Csott
> Assignee: Nicolas Peltier
> Priority: Trivial
> Labels: pipes
> Fix For: pipes 2.0.4
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> I want to use a slingPipe/write to create some content. This contains a
> thumbnail.png. For this thumbnail a jcr:content node with a jcr:uuid property
> is automatically created when the pipe is stored in JCR.
> The write pipe fails with the following exception:
> java.lang.IllegalArgumentException: Value for key jcr:uuid can't be put into
> node: b66b7....
> at
> org.apache.sling.jcr.resource.internal.JcrModifiableValueMap.put(JcrModifiableValueMap.java:458)
> at
> org.apache.sling.jcr.resource.internal.JcrModifiableValueMap.put(JcrModifiableValueMap.java:47)
> at
> org.apache.sling.pipes.internal.WritePipe.copyProperties(WritePipe.java:132)
>
> My suggestion is to add jcr:uuid to BasePipe.IGNORED_PROPERTIES since I
> cannot imagine any case where it does make sense to copy jcr:uuid as this is
> unique.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)