+++ This bug was initially created as a clone of Bug #494066 +++ We get massive stacktraces when we try to create kickstart profiles in Spacewalk with 0.5 and Cobbler 1.6. This requires a change on both sides: Cobbler: http://tinyurl.com/cyvkyg Spacewalk: Removal of \n from returned strings: diff --git a/java/code/src/com/redhat/rhn/manager/kickstart/cobbler/CobblerXMLRPCHelper.java b/java/code/src/com/redhat/rhn/manager/kickstart/cobbler/CobblerXMLRPCHelper.java index 5510ba1..63539f2 100644 --- a/java/code/src/com/redhat/rhn/manager/kickstart/cobbler/CobblerXMLRPCHelper.java +++ b/java/code/src/com/redhat/rhn/manager/kickstart/cobbler/CobblerXMLRPCHelper.java @@ -71,9 +71,6 @@ public class CobblerXMLRPCHelper implements XMLRPCInvoker { catch (XmlRpcException e) { throw new RuntimeException("XmlRpcException calling cobbler.", e); } - if (retval instanceof String) { - retval = retval + "\n"; - } return retval; } diff --git a/java/code/src/org/cobbler/CobblerConnection.java b/java/code/src/org/cobbler/CobblerConnection.java index 51d4300..8ec8b74 100644 --- a/java/code/src/org/cobbler/CobblerConnection.java +++ b/java/code/src/org/cobbler/CobblerConnection.java @@ -115,18 +115,14 @@ public class CobblerConnection { * @return Object returned. */ private Object invokeMethod(String procedureName, List args) { - log.debug("procedure: " + procedureName + " Orig ags: " + args); + log.debug("procedure: " + procedureName + " ags: " + args); Object retval; try { - log.debug("args array: " + args); retval = client.invoke(procedureName, args); } catch (Exception e) { throw new XmlRpcException("XmlRpcException calling cobbler.", e); } - if (retval instanceof String) { - retval = retval + "\n"; - } return retval; }
ON_QA
VERIFIED on 5/29 build.
release pending. no stacktraces when creating kickstart profile. https://sun-x4200-01.rhts.bos.redhat.com
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/RHEA-2009-1434.html