The Nuxeo Java Client doesn't handle non-ASCII characters in headers, thus making the BatchUpload endpoint not working when uploading file with name containing such characters.
The exception is below is observed:
java.lang.IllegalArgumentException: Unexpected char 0xdc at 0 in X-File-Name value: Ümlaut.pdf
at okhttp3.Headers.checkValue(Headers.java:284)
at okhttp3.Headers$Builder.add(Headers.java:324)
at okhttp3.Request$Builder.addHeader(Request.java:196)
at retrofit2.RequestBuilder.addHeader(RequestBuilder.java:101)
at retrofit2.ParameterHandler$Header.apply(ParameterHandler.java:79)
at retrofit2.RequestFactory.create(RequestFactory.java:108)
at retrofit2.OkHttpCall.createRawCall(OkHttpCall.java:190)
at retrofit2.OkHttpCall.execute(OkHttpCall.java:173)
at org.nuxeo.client.NuxeoClient.fetchResponse(NuxeoClient.java:274)
at org.nuxeo.client.objects.AbstractConnectable.fetchResponse(AbstractConnectable.java:65)
at org.nuxeo.client.objects.upload.BatchUpload.upload(BatchUpload.java:169)
at xxx.NuxeoAccess.testBatchUpload(NuxeoAccess.java:67)
- Is referenced in
- links to