Error when using `configchannel.createOrUpdatePath` API to upload binary files, those are considered as text files.
Environment
- Red Hat Network (RHN) Satellite.
configchannel.createOrUpdatePath
API call
Issue
- In RHN Satellite 5.3, the API call
configchannel.createOrUpdatePath
does not allow a file to be marked as binary. - Error when using
createOrUpdatePath
API to upload binary files, those are considered as text files.
Resolution
To pass binary file (base64) content over RHN Satellite server use xmlrpclib.Binary('content')
function so that RHN Satellite will consider it as a binary configuration file.
Root Cause
If we do not pass base64 content using xmlrpclib.Binary('content')
function, it will upload the configuration file as a text file.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments