Bug 565448

Summary: client.activationkey.addChildChannels returns com.redhat.rhn.common.translation.TranslationException: Could not find translator for class java.lang.String to interface java.util.List
Product: [Community] Spacewalk Reporter: Michael Mráka <mmraka>
Component: APIAssignee: Tomas Lestach <tlestach>
Status: CLOSED NOTABUG QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: low    
Version: 0.8   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-16 15:57:19 UTC Type: ---
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: 559281    

Description Michael Mráka 2010-02-15 11:17:56 UTC
Description of problem:
API call client.activationkey.addChildChannels returns com.redhat.rhn.common.translation.TranslationException: Could not find translator for class java.lang.String to interface java.util.List

Version-Release number of selected component (if applicable):
spacewalk-java-0.8.11-1.fc12.noarch


How reproducible:
always

Steps to Reproduce:
1. create a base channel and a child channel
2. create activation key with base channel
3. call API client.activationkey.addChildChannels(key, activationkey,  child_channel)
  
Actual results:
com.redhat.rhn.common.translation.TranslationException: Could not find translator for class java.lang.String to interface java.util.List
and child channel is not added to the key

Expected results:
no error and child channel added to the key

Additional info:

Comment 1 Tomas Lestach 2010-02-16 15:57:19 UTC
activationkey.addChildChannels API call expects an ARRAY of childChannelLabel strings, no a single string.