Summary: | RemoveContacts() don't properly reject subscription request | ||
---|---|---|---|
Product: | Telepathy | Reporter: | Guillaume Desmottes <guillaume.desmottes> |
Component: | gabble | Assignee: | Telepathy bugs list <telepathy-bugs> |
Status: | RESOLVED MOVED | QA Contact: | Telepathy bugs list <telepathy-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | smcv |
Version: | git master | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Guillaume Desmottes
2012-07-13 14:06:13 UTC
To my untrained eyes, it looks like this code in gabble_roster_handle_remove is responsible: ... /* If the contact is really stored on the server, deleting their roster item * is sufficient. If they're not, we might have some state resulting from * a publish request or remote removal or something. */ if (item->subscription == GABBLE_ROSTER_SUBSCRIPTION_REMOVE) { /* These will clear a status of REMOVED_REMOTELY or ASK */ roster_item_set_publish (item, TP_SUBSCRIPTION_STATE_NO, NULL); ... I think this _set_publish needs to be outside of the _REMOVE case - a contact who is _NONE or _TO on the roster could still be asking us for publishing permission. (In reply to comment #1) > I think this _set_publish needs to be outside of the _REMOVE case - a contact > who is _NONE or _TO on the roster could still be asking us for publishing > permission. Actually a lie - this doesn't cause an unsubscribe to be sent... hrm. -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-gabble/issues/234. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.