Bug 844433

Summary: Internal Server Error when trying to clone a channel locally created in my organisation, but with a parent channel shared by Spacewalk Default Organization
Product: [Community] Spacewalk Reporter: François BORIE <francois.borie>
Component: WebUIAssignee: Tomas Lestach <tlestach>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 1.7   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-01 16:19:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 871344    

Description François BORIE 2012-07-30 15:35:47 UTC
Description of problem:

My spacewalk server is using multi-organizations. 
The spacewalk default organization creates, owns and shares to other orgs main channels.  
When a custom organization creates its own child channel, under a SHARED parent channel, all is working fine. 
But when trying to clone this specific channel, the WEB-UI throws an error "Internal Server Error".
Looking for the bug report sent by email, I get : 
Error message:
  illegal parent id at /usr/share/perl5/vendor_perl/Sniglets/ChannelEditor.pm line 96.

Using the API (channel.software.clone) to do this produces the same kind of result : it throws an error for the parent channel given in parameter -> 

redstone.xmlrpc.XmlRpcFault: No such channel: cha-rhel-5-i686

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

How reproducible:
Always

Steps to Reproduce:
1. Create and share parent / child channels from Spacewalk Default organization to other orgs
2. From a custom org, create a specific child channel under a shared parent channel
3. Try to clone this specific child channel
  
Actual results:
On web UI -> internal server error
With API call -> no such channel (concerning the parent one)

Expected results:
Clone is done successfully, cloned child channel is linked to the shared parent channel

Additional info:

Comment 1 Tomas Lestach 2012-10-12 14:39:22 UTC
spacewalk.git: d50912ad194b5cc7ed0413c38659263c4b926d89

Comment 2 Jan Pazdziora 2012-10-30 19:24:23 UTC
Moving ON_QA. Packages that address this bugzilla should now be available in yum repos at http://yum.spacewalkproject.org/nightly/

Comment 3 Jan Pazdziora 2012-11-01 16:19:41 UTC
Spacewalk 1.8 has been released: https://fedorahosted.org/spacewalk/wiki/ReleaseNotes18