Bug 1002316 - Cloning channel via API generates ISE if no "summary" is provided.
Summary: Cloning channel via API generates ISE if no "summary" is provided.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: API
Version: 560
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Tomas Lestach
QA Contact: Dimitar Yordanov
URL:
Whiteboard:
Depends On:
Blocks: sat570-lowbug
TreeView+ depends on / blocked
 
Reported: 2013-08-28 21:36 UTC by Dimitar Yordanov
Modified: 2015-01-13 09:54 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-01-13 09:54:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dimitar Yordanov 2013-08-28 21:36:48 UTC
Description of problem:
Cloning channel via API  generates ISE if no "summary" is provided.
The problem is that there is no check as for label, name, gpg.

Version-Release number of selected component (if applicable):
spacewalk-java-2.1.28-1

How reproducible:
100%

Steps to Reproduce:
1. Execute the following script:

import sys, xmlrpclib
RHN_SERVER='https://xxxx.redhat.com/rpc/api'
RHN_USER='xxxx'
RHN_PASS='xxxx'
client = xmlrpclib.Server(RHN_SERVER, verbose=0)
key = client.auth.login(RHN_USER, RHN_PASS)

client.channel.software.create(key,'test_label','test_name','summary','channel-x86_64','')
client.channel.software.clone(key,'test_label',{'name':'clone-test_name','label':'clone-test_label',},True)

Actual results:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1312, in single_request
    response.msg,
xmlrpclib.ProtocolError: <ProtocolError for ibm-x3650m4-03-vm08.lab.eng.brq.redhat.com/rpc/api: 500 Internal Server Error>

Expected results:
No ISE, some explanation message.

Additional info:

Comment 1 Dimitar Yordanov 2013-08-29 18:34:58 UTC
Fixed in Spacewalk master: 958229c84afbba13e42ec5371ffa325af70b9782

Comment 3 psmatana 2014-11-15 14:21:51 UTC
Verified.

spacewalk-java-2.3.8-57.el6sat.noarch

xmlrpclib.Fault: <Fault -1: 'redstone.xmlrpc.XmlRpcFault: unhandled internal exception: The channel parameter Summary is invalid. Summary must be provided.'>

Reproduced on spacewalk-java-2.0.2-90.el6sat.noarch

xmlrpclib.ProtocolError: <ProtocolError for smqa-x3550m3-02.lab.eng.brq.redhat.com/rpc/api: 500 Internal Server Error>

using reproducer from description.

Comment 5 Clifford Perry 2015-01-13 09:54:11 UTC
With the release of Red Hat Satellite 5.7 on January 12th 2015 this bug is
being moved to a Closed Current Release state. 

The Satellite 5.7 GA Errata:
 - https://rhn.redhat.com/errata/RHSA-2015-0033.html 

Satellite 5.7 Release Notes:
 -
https://access.redhat.com/documentation/en-US/Red_Hat_Satellite/5.7/html-single/Release_Notes/index.html

Satellite Customer Portal Blog announcement for release:
 - https://access.redhat.com/blogs/1169563/posts/1315743 

Cliff


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