XEP-0030: Empty disco#items result silently ignored #90
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
When querying service discovery items (
/disco items) on a server that returns an empty<query/>element (no items), the client silently ignores the result instead of displaying a message to the user.Expected Behavior
Display message:
No service discovery items for <jid>Actual Behavior
No output shown to user. Command appears to do nothing.
Steps to Reproduce
/disco itemsagainst a JID that has no associated itemsXEP-0030 Reference
Per XEP-0030 Section 3, 4:
Example valid response:
Root Cause
In iq.c, function
_disco_items_result_handler()has early return when query has no children:Introduced In
Commit
f28655c5c(2016-05-08) "Move logic to connection_set_disco_items"Affected Versions
All versions since 0.5.0
Proposed Fix
Remove the early return check. PR #89 submitted.
Resolved by #89