You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2017/06/28 06:32:00 UTC

[jira] [Commented] (JCRVLT-186) rcp fails to copy binaries correctly

    [ https://issues.apache.org/jira/browse/JCRVLT-186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16065983#comment-16065983 ] 

Tobias Bocanegra commented on JCRVLT-186:
-----------------------------------------

steps to reproduce:

1. start AEM 6.3 instance
2. create a folder /content/dam/src and /content/dam/dst
3. upload an image to /content/dam/src. eg: test.png
4. execute:

{noformat}
$ vlt rcp -r  http://admin:admin@localhost:4502/crx/server/crx.default/jcr:root/content/dam/src/test.png http://admin:admin@localhost:4502/crx/server/crx.default/jcr:root/content/dam/dst/test.png
.
.
Copy http://******:******@localhost:4502/crx/server/crx.default/jcr:root/content/dam/src/test.png to http://******:******@localhost:4502/crx/server/crx.default/jcr:root/content/dam/dst/test.png (recursive)
Connecting via JCR remoting to http://admin:admin@localhost:4502/crx/server
Connecting via JCR remoting to http://admin:admin@localhost:4502/crx/server
000001 A /content/dam/dst/test.png
000002 A /content/dam/dst/test.png/jcr:content
000003 A /content/dam/dst/test.png/jcr:content/renditions
000004 A /content/dam/dst/test.png/jcr:content/renditions/cq5dam.web.1280.1280.png
000005 A /content/dam/dst/test.png/jcr:content/renditions/cq5dam.web.1280.1280.png/jcr:content
000006 A /content/dam/dst/test.png/jcr:content/renditions/cq5dam.thumbnail.48.48.png
000007 A /content/dam/dst/test.png/jcr:content/renditions/cq5dam.thumbnail.48.48.png/jcr:content
000008 A /content/dam/dst/test.png/jcr:content/renditions/cq5dam.thumbnail.140.100.png
000009 A /content/dam/dst/test.png/jcr:content/renditions/cq5dam.thumbnail.140.100.png/jcr:content
000010 A /content/dam/dst/test.png/jcr:content/renditions/original
000011 A /content/dam/dst/test.png/jcr:content/renditions/original/jcr:content
000012 A /content/dam/dst/test.png/jcr:content/renditions/cq5dam.thumbnail.319.319.png
000013 A /content/dam/dst/test.png/jcr:content/renditions/cq5dam.thumbnail.319.319.png/jcr:content
000014 A /content/dam/dst/test.png/jcr:content/related
000015 A /content/dam/dst/test.png/jcr:content/metadata
Saving 15 nodes...
Done.
Copy completed. 15 nodes in 303ms. 877023 bytes
{noformat}


> rcp fails to copy binaries correctly
> ------------------------------------
>
>                 Key: JCRVLT-186
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-186
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>          Components: RCP
>    Affects Versions: 3.1.38
>            Reporter: Tobias Bocanegra
>            Priority: Critical
>
> coping a binary, eg. an image results in data corruption, probably dues to wrong charset setting in the webdav POST:
> {noformat}2017-06-28T15:01:31.114+09:00
> --PuVe35GoHu1NaGvsEEeuI3O1LXf5jbJ
> Content-Disposition: form-data; name="/content/dam/dst/test.png/jcr:content/renditions/cq5dam.web.1280.1280.png/jcr:content/jcr:data"
> Content-Type: jcr-value/binary; charset=UTF-8
> Content-Transfer-Encoding: binary
> ‰PNG
> ....
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)