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

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

I did a diff of the multipart binaries, and they are the same.

request with 3.1.16:

{noformat}
POST /crx/server/crx.default/jcr%3aroot/ HTTP/1.1
Link: <urn:uuid:3611eeb4-fb9c-4c3c-a25b-8c9517bd75ad>; 
rel="http://www.day.com/jcr/webdav/1.0/session-id";
Referer: http://localhost/
Authorization: Basic YWRtaW46YWRtaW4=
User-Agent: Jakarta Commons-HttpClient/3.0
Host: localhost:14502
Content-Length: 491868
Content-Type: multipart/form-data; boundary=XEWqEISi5_DcrE-Vz7se2kiuTfD6NnnK

--XEWqEISi5_DcrE-Vz7se2kiuTfD6NnnK
Content-Disposition: form-data; 
name="/content/dam/dst/test.png/jcr:content/renditions/original/jcr:content/jcr:lastModified"
Content-Type: jcr-value/date; charset=UTF-8
Content-Transfer-Encoding: 8bit

2017-06-28T15:01:28.933+09:00
--XEWqEISi5_DcrE-Vz7se2kiuTfD6NnnK
Content-Disposition: form-data; 
name="/content/dam/dst/test.png/jcr:content/renditions/original/jcr:content/jcr:data";
 
filename="/content/dam/dst/test.png/jcr:content/renditions/original/jcr:content/jcr:data"
Content-Type: jcr-value/binary; charset=UTF-8
Content-Transfer-Encoding: binary

....
{noformat}

request with 3.1.40:

{noformat}
POST /crx/server/crx.default/jcr%3aroot/ HTTP/1.1
Referer: http://localhost:14502/crx/server/crx.default/jcr%3aroot/
Link: <urn:uuid:fb3d1085-6037-4e5b-986e-d7663b126b84>; 
rel="http://www.day.com/jcr/webdav/1.0/session-id";
Transfer-Encoding: chunked
Content-Type: multipart/form-data; boundary=dBhwBfiZW0bWf80fiK-l3dcVSh2t9R5Hf
Host: localhost:14502
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_131)
Accept-Encoding: gzip,deflate
Authorization: Basic YWRtaW46YWRtaW4=

--dBhwBfiZW0bWf80fiK-l3dcVSh2t9R5Hf
Content-Disposition: form-data; 
name="/content/dam/dst/test.png/jcr:content/renditions/original/jcr:content/jcr:data"
Content-Type: jcr-value/binary; charset=UTF-8
Content-Transfer-Encoding: binary

....
{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)

Reply via email to