Uploaded image for project: 'Nuxeo Java Client'
  1. Nuxeo Java Client
  2. JAVACLIENT-208

Non-ASCII characters are not allowed in BatchUpload

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.7.0
    • Component/s: Core

      Description

      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)
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m