-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dbus binding doesn't detect values with incorrect types in arrays, it elides them #11
Comments
I'm guessing that busctl never sends the actual signature over the dbus, just the values, packaged according to the signature information you gave it. I bet stratisd would have an issue if one of those numbers were negative, or otherwise didn't fit the uint64 requirements. |
OK, what happens when one of the numbers is negative? |
Whoops, pretty funky.
I can't get the same effect unless it's a value in array. Might be a dbus-rs problem, since we seem to be using the correct types. |
Known dbus-rs bug, looks like: diwic/dbus-rs#62. There may be a work around. |
All our changes to D-Bus layer haven't removed this problem, alas. What's slightly wierder is that:
succeeds, but doesn't return the object path for the blockdev, which was passed as a numeric value.
There's a real possibility that dbus-rs is just skipping the value that was incorrectly packaged. After all, this
works. Not clear what to do about this, though. |
We will document that this is an allowed bug in the README. |
For example, the following uses an incorrect a(sss), but the call gets through...
It doesn't seem to be a big deal - the filesystems array is 0 length.
The text was updated successfully, but these errors were encountered: