Björn Csott created SLING-7616:
----------------------------------

             Summary: [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


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)

Reply via email to