On 2018-06-08 18:17, Woonsan Ko wrote:
On Fri, Jun 8, 2018 at 5:18 AM, Mathieu Baudier <[email protected]> wrote:
Hello,

I am facing a problem when trying to create a node (of type nt:file) via
davex remoting when the node name contains non-ASCII characters (e.g. Zones
Géographiques.pdf in my case). We are using Jackrabbit v2.16.0.

I made sure that both the server and the client use UTF-8 as default
charset and I have debugged both sides in depth. It seems to me that the
problem is on the client side when the diff is sent as multiform parts.

In org.apache.jackrabbit.spi2davex.RepositoryServiceImpl, the StringBuilder
'buf' looks good (line ~610):

I have neither experience nor knowledge about the JCR remoting module.
But as you already have looked into the code ;-), perhaps you can try
with this simple one-liner change:

             MultipartEntityBuilder b =
MultipartEntityBuilder.create().setCharset(Charset.forName("UTF-8"));

Even if Utils.addPart(...) contains the charset for the mime part, the
charset seems to be ignored in the end by the MultipartEntityBuilder
unless specified like the above.

Regards,

Woonsan

I have reproduced the issue and will open a JIRA ticket soonish.

Best regards, Julian

Reply via email to