Home » Networking » Net_Cyrus » Bug #9528
function connect does not set _user
Details
| Submitted | 2006-12-02 15:52 UTC |
|---|---|
| From | AlfonsName at netscape dot net |
| Assigned | amistry |
| Status | Closed |
| Package | Net_Cyrus |
| PHP Version | 4.3.10 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2006-12-02 15:52 UTC] AlfonsName at netscape dot net
Description:
------------
Hi,
I tried to delete a mailbox with deleteMailbox.
This fails for me as _setAdminPriv fails, as _user is not set for me.
This is, as I do not pass the username to the constructor,
but connect using the method connect.
So does test_cyrus.php .
The most easy solution would be to set _user (and maybe for completeness) also _host, _password and _port on a successull connect.
Sincerly,
mbraun
Test script:
---------------
The test_cyrus.php shipped with the package will fail for this reason.
Expected result:
----------------
The admins privs to be set to complete deletion of the mailbox.
Actual result:
--------------
The mailbox cannot be deleted, if the username to connect to the server is not passed to the constructor.
[2006-12-22 00:13 UTC] amistry at php dot net
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.