When using the operation Blob.Attach the filename is not correctly set in Nuxeo server for the uploaded file.
- First reason would be a defect in retrofit client:
https://github.com/square/retrofit/issues/1140
- Second reason would be the missing conf variable for Nuxeo server:
-Dmail.mime.decodeparameters=true
A way to force the filename encoding is to play with headers:
| + # Quote UTF-8 filenames eventhough JAX-RS does not seem to be able | + # to retrieve them as per: https://tools.ietf.org/html/rfc5987 | + quoted_filename = urllib.quote(filename.encode('utf-8')) | + content_disposition = ("attachment; filename*=UTF-8''%s" | + % quoted_filename) | + blob_part.add_header("Content-Disposition", content_disposition
- is duplicated by
-
JAVACLIENT-105 Fix wrong filename when attaching blob
- Resolved
- is related to
-
JAVACLIENT-105 Fix wrong filename when attaching blob
- Resolved