Error when using `configchannel.createOrUpdatePath` API to upload binary files, those are considered as text files.

Solution Verified - Updated -

Environment

Issue

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