Bug 38336

Summary: Exception "contact already exists" when trying to accept an invitation
Product: papyon Reporter: jerico <jerico.dev>
Component: generalAssignee: jerico <jerico.dev>
Status: NEW --- QA Contact:
Severity: normal    
Priority: medium    
Version: git master   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on: 37962    
Bug Blocks:    

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.