Bug 565448 - client.activationkey.addChildChannels returns com.redhat.rhn.common.translation.TranslationException: Could not find translator for class java.lang.String to interface java.util.List
Summary: client.activationkey.addChildChannels returns com.redhat.rhn.common.translati...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Spacewalk
Classification: Community
Component: API
Version: 0.8
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tomas Lestach
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space09
TreeView+ depends on / blocked
 
Reported: 2010-02-15 11:17 UTC by Michael Mráka
Modified: 2010-02-16 15:57 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-02-16 15:57:19 UTC
Embargoed:


Attachments (Terms of Use)

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.


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