Univention Bugzilla – Bug 31922
umc-client: Support for mime type application/octet-stream
Last modified: 2016-10-07 18:08:41 CEST
Needed for Bug #26785. UMC does not support the mime type application/octet-stream, for example: root@master501:~# umc-command -U Administrator -P univention upload/schema -F share.schema -m application/octet-stream -o name=share.schema Usage: umc-command [options] command <arguments> umc-command: error: option -m: invalid choice: 'application/octet-stream' (choose from 'application/json', 'image/jpeg', 'image/png') root@master501:~#
When the patch from Bug #31923 is applied this does not need to be done. Every uploaded file has it's own mimetype field but the request mimetype still keeps being JSON. UMCP is not designed to support mutliple request mimetypes. The mimetype should always be application/json. UMCP-Messages with an other mimetype than JSON does not support Flavor, Message, Result, Status and Options as these are information stored in the Message body instead of the UMCP-Protocol headers.
Use univention.lib.umc_connection (or the cli-client from toolshed) for this.