Bug 513503

Summary: dbus interface doesn't correctly use type "any"
Product: [openSUSE] openSUSE 11.2 Reporter: Josef Reidinger <jreidinger>
Component: YaST2Assignee: Ladislav Slezák <lslezak>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: mvidner
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: time YaPI

Description Josef Reidinger 2009-06-16 11:56:18 UTC
Created attachment 298382 [details]
time YaPI

signature of YaPI is: 
BEGIN{$TYPEINFO{GetZoneMap} = ["function",
    ["list",["map","string","any"]]];
}

any is string or map. If I call this function via dbus it returns:
process 11128: Writing an element of type array, but the expected type here is string
The overall signature expected here was 'aa{ss}' and we are on byte 4 of that signature.
  D-Bus not built with -rdynamic so unable to print a backtrace
Aborted

Attached test YaPI.
Comment 1 Ladislav Slezák 2009-07-08 11:23:06 UTC
Fixed in Yast SVN (trunk), added a basic testsuite.