Created attachment 414846 [details] createOrUpdatePath_API_script Description of problem: Configuration files uploaded through API keep incrementing the version number though the file and file contents are the same. Version-Release number of selected component (if applicable): RHNS 530 How reproducible: Always Steps to Reproduce: 1. Modify the Satellite's FQDN, username, password and systemid from the attached script 2. Execute it on a RHN Satellite server 3. See the Revesion number from WebUI under Systems -> System in question -> SDC -> Configuration -> View/Modify Files -> Locally-Managed Files Actual results: File revision changes Expected results: File revision should not change if the file is not changed. Additional info: Files added using the WebUI works correctly and the revision doesn't change.
spacewalk.git: e23d86a2bf8df74a960e5d151d0cbf912f20dac2
handle also directory and symlink config revision comparism ... spacewalk.git: 888603756256c5f374899bf085914ff768bb0642
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Consequence: New configuration revision was created every time a configuration file was uploaded via API, even if the file (meta) content didn't change at all. Result: New configuration revision will be created only if the new revision would differ from the actual one, when uploading configuration files via API.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-0072.html