Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.3.2

Bug #11443 renameUser does not release old username properly
Submitted: 2007-06-26 14:33 UTC
From: felix Assigned: amistry
Status: Closed Package: Net_Cyrus (version 0.3.1)
PHP Version: 5.2.3 OS: Linux slackware
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 24 - 8 = ?

 
 [2007-06-26 14:33 UTC] felix (Felix Janssen)
Description: ------------ When I create a user named 'pietje', I get a nice mailbox with the same name. I can rename the user to 'jantje', which works fine as well. But when I try to create a new user 'pietje' (which should be fine since I renamed the previous one), I get a PEAR_Error explaining that the user already exists. But when I open cyradm and list all the mailboxes, there is no user.pietje. Test script: --------------- $ret = $imap->createUser('pietje'); $imap->renameUser('pietje', 'jantje'); $ret = $imap->createUser('pietje'); Expected result: ---------------- I end up with 2 users: pietje and jantje Actual result: -------------- I end op with only jantje

Comments

 [2007-06-26 15:01 UTC] felix (Felix Janssen)
I solved the problem by changing 'deleteMailbox' in 'deleteUser' on Cyrus.php:525
 [2008-03-22 19:24 UTC] amistry (Anish Mistry)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.