Service crash when returning array of dictionary
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NDesk D-Bus |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
I implemented an exported object possessing several standard dbus properties, one of theses properties is a Dictionnary of < string, Dictionnary of <string, object> when I query this property via GetAll it return without problem when I do a Get on this particular property it doesn't respond and the whole service seems to have crashed.
See attached test case which you can compile with :
gmcs \
-debug \
-out:
-target:exe\
-r:Mono.Posix \
`pkg-config --libs ndesk-dbus-1.0 ndesk-dbus-
-pkg:
TestExport.cs \
Output:
$ dbus-send --print-reply --dest=
method return sender=:1.585 -> dest=:1.586 reply_serial=2
array [
dict entry(
string "HandlerChannel
variant array [
)
)
]
]
)
]
$ dbus-send --print-reply --dest=
Error org.freedesktop
$ dbus-send --print-reply --dest=
Error org.freedesktop
Also I noticed that when FileTransferFilter is empty both method make the service crash
Sorry small mistake it's obviously not a Dictionary of Dictonary but an array of dictionary