Bug 1558684

Summary: Internal Server Error (ISE) while trying to clone child channel to a channel without a parent
Product: Red Hat Satellite 5 Reporter: anerurka
Component: ServerAssignee: Tomáš Kašpárek <tkasparek>
Status: CLOSED WONTFIX QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 580CC: jdostal, rdrazny, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-01 13:13:36 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: 1450940, 1582457    

Description anerurka 2018-03-20 19:12:23 UTC
Description of problem:

When we try to clone a child channel into a channel without any parent it fails with Internal Server Error.

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

Satellite Server v.5.8


How reproducible:


Steps to Reproduce:

1. Create a new organization 
2. Add only child channel entitlement are provided to a new org and it's base channel entitlement is not present in the new org
3. Try to clone a child channel (without parent) 

Actual results:

- Fails with 500 Internal Server Error over Web UI


Expected results:

- Child channel should be cloned

Additional info:

- Seems to be regression since the issue is not observed on v.5.7

Comment 1 Tomas Lestach 2018-03-22 17:26:00 UTC
I do not think we support cloning channels from other orgs.
But definitely an ISE is a bug.

Comment 2 Tomáš Kašpárek 2018-04-03 11:01:00 UTC
spacewalk.git(master): 81245547b84cfa43e3aeec431e658e3cc19f6757

Comment 3 Tomáš Kašpárek 2018-04-03 11:09:47 UTC
ignore comment#2
spacewalk.git(master): aaa4d21a855d5012e85f1579476c4a0716baa6f7

Comment 4 Jiří Dostál 2018-04-05 12:46:18 UTC
Due to spacewalk-java-2.8 -> spacewalk-java-2.9, above commit is not relevant as well. Please ignore comment#3 as well.
spacewalk.git(master) 7e1b4438a048a18bafc3de6fa15e6c981ee09782