Question about koji hub opts and Java

Kiu Leung kleung at redhat.com
Mon Aug 8 19:28:02 UTC 2011


Hi all,

This is Ken Leung, the Red Hat intern student has been trying to create a java client for koji hub.  I ran a few koji debugs with koji web and 
my java client and noticed that koji web has been generating web method calls with opts instead of parms for a listBuild
by task ID, as shown below:

2011-08-08 14:41:48,533 [DEBUG] m=listBuilds u=None koji.xmlrpc: Handling method listBuilds for session None (#None)
2011-08-08 14:41:48,533 [DEBUG] m=listBuilds u=None koji.xmlrpc: Params: ()
2011-08-08 14:41:48,533 [DEBUG] m=listBuilds u=None koji.xmlrpc: Opts: {'taskID': 4623}

If I use the apache xmlrpc library, I can only generate a call with the following:

2011-08-08 14:55:01,171 [DEBUG] m=getBuild u=testuser koji.xmlrpc: Handling method getBuild for session 14571 (#None)
2011-08-08 14:55:01,172 [DEBUG] m=getBuild u=testuser koji.xmlrpc: Params: ({'taskID': 4623},)
2011-08-08 14:55:01,173 [DEBUG] m=getBuild u=testuser koji.xmlrpc: Opts: {}

So I wonder if anybody knows how to generate the koji hub desired Opts with apache xmlrpc library?  Or is Opts a python specific
feature which is not reproducable with Java and apache xmlrpc?

You kind advice is appreciated and thanks in advance!

Best regards,

Ken Leung


More information about the buildsys mailing list