Bug 492481 - channel.software.clone method creates custom channel, NOT cloned channel
Summary: channel.software.clone method creates custom channel, NOT cloned channel
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: API
Version: 520
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Brad Buckingham
QA Contact: Sayli Karmarkar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-26 22:09 UTC by Stanislav Polasek
Modified: 2015-03-23 01:09 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-03-31 08:47:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
simple script to test the problem (459 bytes, application/octet-stream)
2009-03-26 22:09 UTC, Stanislav Polasek
no flags Details

Description Stanislav Polasek 2009-03-26 22:09:30 UTC
Created attachment 336919 [details]
simple script to test the problem

Description of problem:
Python channel.software.clone method creates standard custom channel, not cloned channel.

Version-Release number of selected component (if applicable):
5.2

How reproducible:
Allways

Steps to Reproduce:
1. use script to create cloned channel
2. check web ui: Channels->Manage Software Channels->click on channel name
3. "Details" tab does not list the "Cloned From:" property
4. "Errata" tab does not list the "Clone" option

Actual results:
Standard custom channel

Expected results:
Cloned channel

Additional info:
Attached the simple script to test

Comment 1 Stanislav Polasek 2009-03-27 06:53:38 UTC
I can confirm the same problem even using perl script, so it's not limited to python:

#!/usr/bin/perl -w
use strict;
use Frontier::Client;

my $HOST = 'localhost';
my $user = 'username';
my $pass = 'password';

my $client = new Frontier::Client(url => "http://$HOST/rpc/api");
my $session = $client->call('auth.login', $user, $pass);

my %newchannel = (
        name    => "testname",
        label   => "testlabel",
        summary => "testsummary"
);
my $cid = $client->call( "channel.software.clone", $session, "rhel-i386-as-4", \%newchannel, $client->boolean(0) );

$client->call('auth.logout', $session);

Comment 2 Stanislav Polasek 2009-03-27 06:55:29 UTC
Changed bug subject, it's not limited to python.

Comment 3 Stanislav Polasek 2009-03-31 08:47:08 UTC
I have found the cloning is actually being deprecated, so this is probably not a bug. Closing.


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