Description of problem: using the createOrUpdatePath xmlrpc command API results in newlines being removed from the end of the file Version-Release number of selected component (if applicable): 0.6 How reproducible: Always Steps to Reproduce: 1. configchannel.createOrUpdatePath() 2. Log in to web ui, see that the file has a missing newline. 3. Actual results: ending newlines are removed Expected results: ending newlines are preserved Additional info: have not tested against 1.0 yet
Created attachment 416499 [details] api verbose output 1.0 has the bug still.
I am going to commit a fix that will add new parameter named "contents_enc64" to the filestruct of client.system.config.createOrUpdatePath API call. When this parameter is set to true the server expects to have the content in base64 encoding. This prevents from any whitespace stripping that takes place while parsing XML. Example: # login etc content = base64.b64encode(open("/my/config/file.conf").read()) file_struct = { 'contents':content, 'owner':owner, 'group':group, 'permissions':permissions, 'macro-start-delimiter':'', 'macro-end-delimiter':'', 'contents_enc64':'true' } # call createOrUpdatePath and logout
f771ac7d4a544a07d853549fa4194fd7020b732a
Setting ON_QA on Cliff's request. This should be already in 2010-09-19 respin.
Aligning under space12 and closing with CURRENTRELEASE.
*** Bug 795834 has been marked as a duplicate of this bug. ***
*** Bug 856586 has been marked as a duplicate of this bug. ***