Bug 856368
| Summary: | Spacewalk API channel.software.listChannelRepos call, and other calls that return ContentSource objectsdoes not return an array of struct as described in documentation. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | David Deaderick <david.deaderick> | ||||
| Component: | API | Assignee: | Tomas Lestach <tlestach> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 1.2 | ||||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 857943 (view as bug list) | Environment: | |||||
| Last Closed: | 2012-11-01 16:18:16 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: | 857943, 871344 | ||||||
| Attachments: |
|
||||||
|
Description
David Deaderick
2012-09-11 22:01:08 UTC
When I discovered other calls that should return Repository Informaion had similar issues, I investigated further and discovered the ContentSourceSerializer was not registered. I backed out my previous patch and applied the following patch to correct the issue in multiple calls:
diff --git a/code/src/com/redhat/rhn/frontend/xmlrpc/serializer/SerializerRegistry.java b/code/src/com/redhat/rhn/frontend/xmlrpc/serializer/SerializerRegistry.java
index c701ac2..1dd51c3 100644
--- a/code/src/com/redhat/rhn/frontend/xmlrpc/serializer/SerializerRegistry.java
+++ b/code/src/com/redhat/rhn/frontend/xmlrpc/serializer/SerializerRegistry.java
@@ -44,6 +44,7 @@ public class SerializerRegistry {
SERIALIZER_CLASSES.add(ChannelArchSerializer.class);
SERIALIZER_CLASSES.add(ChannelOverviewSerializer.class);
SERIALIZER_CLASSES.add(ChannelSerializer.class);
+ SERIALIZER_CLASSES.add(ContentSourceSerializer.class);
SERIALIZER_CLASSES.add(CpuSerializer.class);
SERIALIZER_CLASSES.add(DeviceSerializer.class);
SERIALIZER_CLASSES.add(DmiSerializer.class);
Patch in Comment#1 is correct. However, we have this patch in Spacewalk since Tue Aug 28 2012. spacewalk.git: ad74aa7f79a9730ae7b67cce88cf152fffc839e6 Thank you. Moving ON_QA. Packages that address this bugzilla should now be available in yum repos at http://yum.spacewalkproject.org/nightly/ Spacewalk 1.8 has been released: https://fedorahosted.org/spacewalk/wiki/ReleaseNotes18 |