Closed Bug 953495 Opened 11 years ago Closed 11 years ago

Crash [@ purple_accounts_delete] when exiting and duplicated accounts exist

Categories

(Chat Core :: General, defect, P5)

0.1.1

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: florian, Assigned: florian)

References

Details

Attachments

(2 files)

*** Original post on bio 44 at 2008-03-02 13:36:00 UTC ***

*** Due to BzAPI limitations, the initial description is in comment 1 ***
Attached file Valgrind log
*** Original post on bio 44 as attmnt 10 at 2008-03-02 13:36:00 UTC ***

purpleAccout::create should ensure another account with the same name and protocol doesn't exist before calling purple_account_new.

Pidgin does it:
http://lxr.instantbird.org/pidgin2.2.1/source/pidgin/gtkaccount.c#1191

Valgrind log of the crash attached.
Attached patch patchSplinter Review
*** Original post on bio 44 as attmnt 11 at 2008-03-02 13:39:00 UTC ***

This patch will ensure we don't create duplicate accounts on the libpurple side, and will return an error to the JavaScript caller.

We should also fix this in the UI side and prevent the account wizard from allowing the user to enter a duplicate account.  A warning should be displayed at step 2 and the "next" button should be disabled when the user is about to create a duplicate.
Depends on: 953497
*** Original post on bio 44 at 2008-03-07 21:48:08 UTC ***

Sending        xpcom/src/purpleAccount.cpp
Transmitting file data .
Committed revision 183.

Fixed. Filed bug 953497 (bio 46) to take care of the UI issue.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 0.1.2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: