Bug 494908 - Cobbler 1.6 and Spacewalk are incompatible
Summary: Cobbler 1.6 and Spacewalk are incompatible
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: WebUI
Version: 530
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Mike McCune
QA Contact: Steve Salevan
URL:
Whiteboard:
Depends On:
Blocks: 457075
TreeView+ depends on / blocked
 
Reported: 2009-04-08 16:49 UTC by Mike McCune
Modified: 2009-09-10 19:24 UTC (History)
2 users (show)

Fixed In Version: sat530
Doc Type: Bug Fix
Doc Text:
Clone Of: 494066
Environment:
Last Closed: 2009-09-10 19:24:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Mike McCune 2009-04-08 16:49:54 UTC
+++ 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;
     }

Comment 1 Mike McCune 2009-04-22 22:30:34 UTC
ON_QA

Comment 2 Mike McCune 2009-05-20 17:29:02 UTC
ON_QA

Comment 3 Steve Salevan 2009-06-01 16:58:25 UTC
VERIFIED on 5/29 build.

Comment 4 Preethi Thomas 2009-07-28 21:38:57 UTC
release pending.
no stacktraces when creating kickstart profile.
https://sun-x4200-01.rhts.bos.redhat.com

Comment 5 Brandon Perkins 2009-09-10 19:24:58 UTC
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


Note You need to log in before you can comment on or make changes to this bug.