Created attachment 469968 [details] Script that reproduce the problem Description of problem: API call client.configchannel.deleteFiles does not delete the files correctly. Version-Release number of selected component (if applicable): Satellite 5.4 How reproducible: Always Steps to Reproduce: 1.Create a Configuration Channel via API - configchannel.create 2.Add a file to the channel - configchannel.createOrUpdatePath 3.Delete the file from the channel - configchannel.deleteFiles 4.Try to add the file again Actual results: Traceback (most recent call last): File "/tmp/p.py", line 43, in ? client.configchannel.createOrUpdatePath(key, 'RHTS_TEST_LABEL', '/tmp/RHTS_test', False, path_info) File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__ return self.__send(self.__name, args) File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request verbose=self.__verbose File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request return self._parse_response(h.getfile(), sock) File "/usr/lib64/python2.4/xmlrpclib.py", line 1286, in _parse_response return u.close() File "/usr/lib64/python2.4/xmlrpclib.py", line 744, in close raise Fault(**self._stack[0]) xmlrpclib.Fault: <Fault -1: 'redstone.xmlrpc.XmlRpcFault: unhandled internal exception: No row with the given identifier exists: [com.redhat.rhn.domain.config.ConfigFile#26]'> Expected results: The file is added to the Configuration Channel. Additional info: Script that reproduce the problem is enclosed.
spacewalk.git: ce2ab2d821d57702769c8205ad7d054b1c0f14df
Taking QA Contact for bug verification.
Verified with reproducer in attachment 469968 [details]. Package version: spacewalk-java-1.2.39-61.el5sat Add, delete and add again the same file into a config channel works fine now, no traceback.
Verified in stage w/ spacewalk-java-1.2.39-82 -> release pending.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. https://rhn.redhat.com/errata/RHSA-2011-0879.html