After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 361284 - Don't assume accounts to have a "resource" parameter
Don't assume accounts to have a "resource" parameter
Status: RESOLVED FIXED
Product: gossip
Classification: Deprecated
Component: Telepathy
0.17
Other Linux
: Normal normal
: ---
Assigned To: Gossip Maintainers
Gossip Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-10-10 21:54 UTC by Xavier Claessens
Modified: 2006-10-11 10:08 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (6.08 KB, patch)
2006-10-10 22:00 UTC, Xavier Claessens
committed Details | Review

Description Xavier Claessens 2006-10-10 21:54:34 UTC
MSN protocol doesn't have such parameter for example.
Comment 1 Xavier Claessens 2006-10-10 22:00:36 UTC
Created attachment 74449 [details] [review]
proposed patch

This reverse the workaround in gossip_account_param_get, adds needed gossip_account_has_param proposed for HEAD in bug #361278 and use it to not assume "resource" parameter exists.
Comment 2 Richard Hult 2006-10-11 06:56:03 UTC
What is the plan with this? I don't want telepathy code outside the protocols dir...
Comment 3 Richard Hult 2006-10-11 07:01:47 UTC
Also, this needs redoing since the has_param patch has been applied.
Comment 4 Eitan Isaacson 2006-10-11 07:03:20 UTC
It's not protocol-specific, the API needs to give a way of knowing if an account has a certain parameter or not.
Comment 5 Eitan Isaacson 2006-10-11 07:04:27 UTC
Ooops, wrong bug :)
Comment 6 Richard Hult 2006-10-11 07:15:59 UTC
;) Yea, I'm talking about the #ifdef TELEPATHY-thing.
Comment 7 Eitan Isaacson 2006-10-11 07:39:47 UTC
I think Xavier was a bit too vague, I didn't look at the code yet, but it seems like there are over 150 mentions of "resource" outside of the jabber protocol dir. If we want true seperation between protocols and everything else we should minimize the assumption that there is such a thing as resources in gossip. And concentrate all of the resource logic in the jabber dir.
Comment 8 Richard Hult 2006-10-11 07:43:30 UTC
I'm -only- talking about the ifdef in the patch attached here that puts telepathy code outside the telepathy dir.
Comment 9 Xavier Claessens 2006-10-11 07:54:17 UTC
Sorry I set the wrong component. This patch is for TELEPATHY branch and fix protocols/telepathy/gossip-telepathy.c. I checked other places and everywhere (outside protocols/jabber) it doesn't assume the resource exists !
Comment 10 Eitan Isaacson 2006-10-11 07:55:12 UTC
Oh, Oops again :)
This bug should be filed under telepathy, thats a patch we dicussed earlier, I'll commit it.
Comment 11 Richard Hult 2006-10-11 07:56:54 UTC
Aah, sorry for the confusion then :)
Comment 12 Eitan Isaacson 2006-10-11 08:05:26 UTC
Thanks Xavier for a lovely patch.
Comment 13 Xavier Claessens 2006-10-11 09:21:59 UTC
maybe I'm missing something but the patch is not committed into TELEPATHY branch...
Comment 14 Martyn Russell 2006-10-11 10:08:29 UTC
I have committed this for you.