Description of problem: Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. register to satellite 5.4 rhel5u5 kvm guest running on rhel6 kvm host (it will consume regular entitlement) 2. use api call bellow 3. check output Actual results: import sys, xmlrpclib USER='censored' PASS='censored' SERVER='https://censored/rpc/api' client = xmlrpclib.Server(SERVER, verbose=0) key = client.auth.login(USER, PASS) x = client.system.convertToFlexEntitlement(key,[1000010010],'rhel-server') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__ return self.__send(self.__name, args) File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request verbose=self.__verbose File "/usr/lib64/python2.6/xmlrpclib.py", line 1253, in request return self._parse_response(h.getfile(), sock) File "/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response return u.close() File "/usr/lib64/python2.6/xmlrpclib.py", line 838, in close raise Fault(**self._stack[0]) xmlrpclib.Fault: <Fault -1: 'redstone.xmlrpc.XmlRpcFault: unhandled internal exception: java.lang.Integer incompatible with java.lang.Long'> x = client.system.convertToFlexEntitlement(key,[long(1000010010)],'rhel-server') Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__ return self.__send(self.__name, args) File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request verbose=self.__verbose File "/usr/lib64/python2.6/xmlrpclib.py", line 1253, in request return self._parse_response(h.getfile(), sock) File "/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response return u.close() File "/usr/lib64/python2.6/xmlrpclib.py", line 838, in close raise Fault(**self._stack[0]) xmlrpclib.Fault: <Fault -1: 'redstone.xmlrpc.XmlRpcFault: unhandled internal exception: java.lang.Integer incompatible with java.lang.Long'> Expected results: returns number of converted systems as stated in api overview Additional info:
Taking ... and fixing. spacewalk.git: fd2fbec691f6b80a15d049eff2f15ca26039ed67 (not moving to MODIFIED, because I need to run some tests)
Quick test passed, moving to MODIFIED
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: Cause Incompatible method parameters Consequence system.convertToFlexEntitlement fails with redstone.xmlrpc.XmlRpcFault: unhandled internal exception: java.lang.Integer incompatible with java.lang.Long Result system.convertToFlexEntitlement won't fail at right at the beginning, but works as expected
Taking QA contact. Good candidate for automation.
Changing to VERIFIED. Testing procedure: Automated test Verified against: spacewalk-java-1.2.39-36.el5sat
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. http://rhn.redhat.com/errata/RHBA-2011-0362.html