Bug 38336 - Exception "contact already exists" when trying to accept an invitation
Summary: Exception "contact already exists" when trying to accept an invitation
Status: NEW
Alias: None
Product: papyon
Classification: Unclassified
Component: general (show other bugs)
Version: git master
Hardware: All All
: medium normal
Assignee: jerico
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 37962
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-15 02:14 UTC by jerico
Modified: 2011-09-01 02:54 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description jerico 2011-06-15 02:14:40 UTC
When executing accept_contact_invitation() with add_to_contact_list=True, the soap request fails with "Hidden Contact with Same PUID Already Exists" or "Contact Already Exists", when:
1) a contact existed earlier
2) was deleted
3) an invitation arrives for that contact
4) we're trying to accept that invitation

This problem existed in msnp-sharp (see <http://code.google.com/p/msnp-sharp/issues/detail?id=249>) and has been solved there. I'll try to port their solution over to papyon.
Comment 1 jerico 2011-06-20 20:33:24 UTC
A fix can be found in this topic branch: <https://github.com/jerico-dev/papyon/tree/38336-handle-contact-exists>. The fix relies on the changes made for #37962 and I had to refactor several events to get this working. I tried to keep everything backwards compatible, though. The fix was tested stand-alone and with telepathy-butterfly.

Feel free to close once this is in master.
Comment 2 Riccardo (c10ud) 2011-09-01 02:54:06 UTC
oh, i missed this bug.. i'm gonna try your modification, thanks!


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.