[Tickets #12341] Re: Can't edit ACLs with new Imap_Client

noreply at bugs.horde.org noreply at bugs.horde.org
Mon Jun 24 10:39:33 UTC 2013


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/12341
------------------------------------------------------------------------------
  Ticket             | 12341
  Updated By         | simon at simonandkate.net
  Summary            | Can't edit ACLs with new Imap_Client
  Queue              | Horde Base
  Version            | 5.1.0
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


simon at simonandkate.net (2013-06-24 10:39) wrote:

I upgraded to latest everything when I saw that there was an ACL fix  
in Imp 6.1.2. but it didn't fix it.

Question then:

My Horde and Imp setup appears to work fine, including IMAP -  
ActiveSync works OK with the IMAP server, as does Imp.

Horde is setup to use LDAP auth, and Imp is set to Horde auth. The  
IMAP server is using SASL to auth to LDAP, so everything works OK.

As far as I can see the error that I am getting thrown comes from a  
fairly fundamental check in /usr/share/pear/Horde/Imap/Client/Base.php:

         if (!isset($params['username']) || !isset($params['password'])) {
             throw new InvalidArgumentException('Horde_Imap_Client  
requires a username and password.');

If those are not set somewhere, how is my IMAP setup working at all?

Throwing a backtrace in Base.php for username and password gives me  
the following, with neither username nor password having been passed  
to the ACL edit code. As can be seen from the subsequent ActiveSync  
calls (with my CORRECT password obviously removed!) when the password  
and username are passed it works fine:

2013-06-24T10:34:15+00:00 DEBUG: Backtrace:
  1. Horde_Core_Prefs_Ui->generateUI() /var/www/horde/services/prefs.php:32
  2. IMP_Prefs_Special_Acl->display()  
/usr/share/pear/Horde/Core/Prefs/Ui.php:489
  3. Horde_Registry->callAppMethod()  
/var/www/horde/imp/lib/Prefs/Special/Acl.php:109
  4. call_user_func_array() /usr/share/pear/Horde/Registry.php:1173
  5. IMP_Application->authUserList()
  6. Horde_Auth_Imap->listUsers() /var/www/horde/imp/lib/Application.php:397
  7. Horde_Auth_Imap->_getOb() /usr/share/pear/Horde/Auth/Imap.php:145
  8. Horde_Imap_Client_Socket->__construct()  
/usr/share/pear/Horde/Auth/Imap.php:180
  9. Horde_Imap_Client_Base->__construct()  
/usr/share/pear/Horde/Imap/Client/Socket.php:171
10. Horde::debug() /usr/share/pear/Horde/Imap/Client/Base.php:255

2013-06-24T10:34:15+00:00 DEBUG: Backtrace:
  1. Horde_Core_Prefs_Ui->generateUI() /var/www/horde/services/prefs.php:32
  2. IMP_Prefs_Special_Acl->display()  
/usr/share/pear/Horde/Core/Prefs/Ui.php:489
  3. Horde_Registry->callAppMethod()  
/var/www/horde/imp/lib/Prefs/Special/Acl.php:109
  4. call_user_func_array() /usr/share/pear/Horde/Registry.php:1173
  5. IMP_Application->authUserList()
  6. Horde_Auth_Imap->listUsers() /var/www/horde/imp/lib/Application.php:397
  7. Horde_Auth_Imap->_getOb() /usr/share/pear/Horde/Auth/Imap.php:145
  8. Horde_Imap_Client_Socket->__construct()  
/usr/share/pear/Horde/Auth/Imap.php:180
  9. Horde_Imap_Client_Base->__construct()  
/usr/share/pear/Horde/Imap/Client/Socket.php:171
10. Horde::debug() /usr/share/pear/Horde/Imap/Client/Base.php:256

2013-06-24T10:34:44+00:00 DEBUG: Variable information:
string(5) "simon"

Backtrace:
  1. Horde_Rpc_ActiveSync->getResponse() /var/www/horde/rpc.php:156
  2. Horde_ActiveSync->handleRequest()  
/usr/share/pear/Horde/Rpc/ActiveSync.php:141
  3. Horde_ActiveSync_Request_Base->handle()  
/usr/share/pear/Horde/ActiveSync.php:858
  4. Horde_ActiveSync_Request_Sync->_handle()  
/usr/share/pear/Horde/ActiveSync/Request/Base.php:252
  5. Horde_ActiveSync_Collections->pollForChanges()  
/usr/share/pear/Horde/ActiveSync/Request/Sync.php:293
  6. Horde_ActiveSync_Collections->getCollectionChangeCount()  
/usr/share/pear/Horde/ActiveSync/Collections.php:1045
  7. Horde_ActiveSync_Collections->getCollectionChanges()  
/usr/share/pear/Horde/ActiveSync/Collections.php:1178
  8. Horde_ActiveSync_State_Sql->getChanges()  
/usr/share/pear/Horde/ActiveSync/Collections.php:1169
  9. Horde_Core_ActiveSync_Driver->getServerChanges()  
/usr/share/pear/Horde/ActiveSync/State/Sql.php:878
10. Horde_ActiveSync_Imap_Adapter->ping()  
/usr/share/pear/Horde/Core/ActiveSync/Driver.php:650
11. Horde_ActiveSync_Imap_Adapter->_getImapOb()  
/usr/share/pear/Horde/ActiveSync/Imap/Adapter.php:564
12. Horde_Core_ActiveSync_Imap_Factory->getImapOb()  
/usr/share/pear/Horde/ActiveSync/Imap/Adapter.php:1299
13. Horde_Registry_Caller->imapOb()  
/usr/share/pear/Horde/Core/ActiveSync/Imap/Factory.php:43
14. Horde_Registry_Caller->__call()  
/usr/share/pear/Horde/Core/ActiveSync/Imap/Factory.php:43
15. Horde_Registry->call() /usr/share/pear/Horde/Registry/Caller.php:41
16. Horde_Registry->callByPackage() /usr/share/pear/Horde/Registry.php:1065
17. Horde_Registry->pushApp() /usr/share/pear/Horde/Registry.php:1105
18. Horde_Registry->hasPermission() /usr/share/pear/Horde/Registry.php:1510
19. Horde_Registry->isAuthenticated() /usr/share/pear/Horde/Registry.php:1663
20. Horde_Core_Auth_Application->transparent()  
/usr/share/pear/Horde/Registry.php:2162
21. Horde_Registry->callAppMethod()  
/usr/share/pear/Horde/Core/Auth/Application.php:366
22. call_user_func_array() /usr/share/pear/Horde/Registry.php:1173
23. IMP_Application->authTransparent()
24. IMP_Auth::transparent() /var/www/horde/imp/lib/Application.php:365
25. IMP_Auth::authenticate() /var/www/horde/imp/lib/Auth.php:118
26. IMP_Imap->createImapObject() /var/www/horde/imp/lib/Auth.php:79
27. Horde_Imap_Client_Socket->__construct()  
/var/www/horde/imp/lib/Imap.php:234
28. Horde_Imap_Client_Base->__construct()  
/usr/share/pear/Horde/Imap/Client/Socket.php:171
29. Horde::debug() /usr/share/pear/Horde/Imap/Client/Base.php:255

2013-06-24T10:34:44+00:00 DEBUG: Variable information:
string(11) "************"

Backtrace:
  1. Horde_Rpc_ActiveSync->getResponse() /var/www/horde/rpc.php:156
  2. Horde_ActiveSync->handleRequest()  
/usr/share/pear/Horde/Rpc/ActiveSync.php:141
  3. Horde_ActiveSync_Request_Base->handle()  
/usr/share/pear/Horde/ActiveSync.php:858
  4. Horde_ActiveSync_Request_Sync->_handle()  
/usr/share/pear/Horde/ActiveSync/Request/Base.php:252
  5. Horde_ActiveSync_Collections->pollForChanges()  
/usr/share/pear/Horde/ActiveSync/Request/Sync.php:293
  6. Horde_ActiveSync_Collections->getCollectionChangeCount()  
/usr/share/pear/Horde/ActiveSync/Collections.php:1045
  7. Horde_ActiveSync_Collections->getCollectionChanges()  
/usr/share/pear/Horde/ActiveSync/Collections.php:1178
  8. Horde_ActiveSync_State_Sql->getChanges()  
/usr/share/pear/Horde/ActiveSync/Collections.php:1169
  9. Horde_Core_ActiveSync_Driver->getServerChanges()  
/usr/share/pear/Horde/ActiveSync/State/Sql.php:878
10. Horde_ActiveSync_Imap_Adapter->ping()  
/usr/share/pear/Horde/Core/ActiveSync/Driver.php:650
11. Horde_ActiveSync_Imap_Adapter->_getImapOb()  
/usr/share/pear/Horde/ActiveSync/Imap/Adapter.php:564
12. Horde_Core_ActiveSync_Imap_Factory->getImapOb()  
/usr/share/pear/Horde/ActiveSync/Imap/Adapter.php:1299
13. Horde_Registry_Caller->imapOb()  
/usr/share/pear/Horde/Core/ActiveSync/Imap/Factory.php:43
14. Horde_Registry_Caller->__call()  
/usr/share/pear/Horde/Core/ActiveSync/Imap/Factory.php:43
15. Horde_Registry->call() /usr/share/pear/Horde/Registry/Caller.php:41
16. Horde_Registry->callByPackage() /usr/share/pear/Horde/Registry.php:1065
17. Horde_Registry->pushApp() /usr/share/pear/Horde/Registry.php:1105
18. Horde_Registry->hasPermission() /usr/share/pear/Horde/Registry.php:1510
19. Horde_Registry->isAuthenticated() /usr/share/pear/Horde/Registry.php:1663
20. Horde_Core_Auth_Application->transparent()  
/usr/share/pear/Horde/Registry.php:2162
21. Horde_Registry->callAppMethod()  
/usr/share/pear/Horde/Core/Auth/Application.php:366
22. call_user_func_array() /usr/share/pear/Horde/Registry.php:1173
23. IMP_Application->authTransparent()
24. IMP_Auth::transparent() /var/www/horde/imp/lib/Application.php:365
25. IMP_Auth::authenticate() /var/www/horde/imp/lib/Auth.php:118
26. IMP_Imap->createImapObject() /var/www/horde/imp/lib/Auth.php:79
27. Horde_Imap_Client_Socket->__construct()  
/var/www/horde/imp/lib/Imap.php:234
28. Horde_Imap_Client_Base->__construct()  
/usr/share/pear/Horde/Imap/Client/Socket.php:171
29. Horde::debug() /usr/share/pear/Horde/Imap/Client/Base.php:256

2013-06-24T10:34:53+00:00 DEBUG: Variable information:
string(5) "simon"

Backtrace:
  1. Horde_Rpc_ActiveSync->getResponse() /var/www/horde/rpc.php:156
  2. Horde_ActiveSync->handleRequest()  
/usr/share/pear/Horde/Rpc/ActiveSync.php:141
  3. Horde_ActiveSync_Request_Base->handle()  
/usr/share/pear/Horde/ActiveSync.php:858
  4. Horde_ActiveSync_Request_Ping->_handle()  
/usr/share/pear/Horde/ActiveSync/Request/Base.php:252
  5. Horde_ActiveSync_Collections->pollForChanges()  
/usr/share/pear/Horde/ActiveSync/Request/Ping.php:201
  6. Horde_ActiveSync_Collections->getCollectionChangeCount()  
/usr/share/pear/Horde/ActiveSync/Collections.php:1045
  7. Horde_ActiveSync_Collections->getCollectionChanges()  
/usr/share/pear/Horde/ActiveSync/Collections.php:1178
  8. Horde_ActiveSync_State_Sql->getChanges()  
/usr/share/pear/Horde/ActiveSync/Collections.php:1169
  9. Horde_Core_ActiveSync_Driver->getServerChanges()  
/usr/share/pear/Horde/ActiveSync/State/Sql.php:878
10. Horde_ActiveSync_Imap_Adapter->ping()  
/usr/share/pear/Horde/Core/ActiveSync/Driver.php:650
11. Horde_ActiveSync_Imap_Adapter->_getImapOb()  
/usr/share/pear/Horde/ActiveSync/Imap/Adapter.php:564
12. Horde_Core_ActiveSync_Imap_Factory->getImapOb()  
/usr/share/pear/Horde/ActiveSync/Imap/Adapter.php:1299
13. Horde_Registry_Caller->imapOb()  
/usr/share/pear/Horde/Core/ActiveSync/Imap/Factory.php:43
14. Horde_Registry_Caller->__call()  
/usr/share/pear/Horde/Core/ActiveSync/Imap/Factory.php:43
15. Horde_Registry->call() /usr/share/pear/Horde/Registry/Caller.php:41
16. Horde_Registry->callByPackage() /usr/share/pear/Horde/Registry.php:1065
17. Horde_Registry->pushApp() /usr/share/pear/Horde/Registry.php:1105
18. Horde_Registry->hasPermission() /usr/share/pear/Horde/Registry.php:1510
19. Horde_Registry->isAuthenticated() /usr/share/pear/Horde/Registry.php:1663
20. Horde_Core_Auth_Application->transparent()  
/usr/share/pear/Horde/Registry.php:2162
21. Horde_Registry->callAppMethod()  
/usr/share/pear/Horde/Core/Auth/Application.php:366
22. call_user_func_array() /usr/share/pear/Horde/Registry.php:1173
23. IMP_Application->authTransparent()
24. IMP_Auth::transparent() /var/www/horde/imp/lib/Application.php:365
25. IMP_Auth::authenticate() /var/www/horde/imp/lib/Auth.php:118
26. IMP_Imap->createImapObject() /var/www/horde/imp/lib/Auth.php:79
27. Horde_Imap_Client_Socket->__construct()  
/var/www/horde/imp/lib/Imap.php:234
28. Horde_Imap_Client_Base->__construct()  
/usr/share/pear/Horde/Imap/Client/Socket.php:171
29. Horde::debug() /usr/share/pear/Horde/Imap/Client/Base.php:255

2013-06-24T10:34:53+00:00 DEBUG: Variable information:
string(11) "************"

Backtrace:
  1. Horde_Rpc_ActiveSync->getResponse() /var/www/horde/rpc.php:156
  2. Horde_ActiveSync->handleRequest()  
/usr/share/pear/Horde/Rpc/ActiveSync.php:141
  3. Horde_ActiveSync_Request_Base->handle()  
/usr/share/pear/Horde/ActiveSync.php:858
  4. Horde_ActiveSync_Request_Ping->_handle()  
/usr/share/pear/Horde/ActiveSync/Request/Base.php:252
  5. Horde_ActiveSync_Collections->pollForChanges()  
/usr/share/pear/Horde/ActiveSync/Request/Ping.php:201
  6. Horde_ActiveSync_Collections->getCollectionChangeCount()  
/usr/share/pear/Horde/ActiveSync/Collections.php:1045
  7. Horde_ActiveSync_Collections->getCollectionChanges()  
/usr/share/pear/Horde/ActiveSync/Collections.php:1178
  8. Horde_ActiveSync_State_Sql->getChanges()  
/usr/share/pear/Horde/ActiveSync/Collections.php:1169
  9. Horde_Core_ActiveSync_Driver->getServerChanges()  
/usr/share/pear/Horde/ActiveSync/State/Sql.php:878
10. Horde_ActiveSync_Imap_Adapter->ping()  
/usr/share/pear/Horde/Core/ActiveSync/Driver.php:650
11. Horde_ActiveSync_Imap_Adapter->_getImapOb()  
/usr/share/pear/Horde/ActiveSync/Imap/Adapter.php:564
12. Horde_Core_ActiveSync_Imap_Factory->getImapOb()  
/usr/share/pear/Horde/ActiveSync/Imap/Adapter.php:1299
13. Horde_Registry_Caller->imapOb()  
/usr/share/pear/Horde/Core/ActiveSync/Imap/Factory.php:43
14. Horde_Registry_Caller->__call()  
/usr/share/pear/Horde/Core/ActiveSync/Imap/Factory.php:43
15. Horde_Registry->call() /usr/share/pear/Horde/Registry/Caller.php:41
16. Horde_Registry->callByPackage() /usr/share/pear/Horde/Registry.php:1065
17. Horde_Registry->pushApp() /usr/share/pear/Horde/Registry.php:1105
18. Horde_Registry->hasPermission() /usr/share/pear/Horde/Registry.php:1510
19. Horde_Registry->isAuthenticated() /usr/share/pear/Horde/Registry.php:1663
20. Horde_Core_Auth_Application->transparent()  
/usr/share/pear/Horde/Registry.php:2162
21. Horde_Registry->callAppMethod()  
/usr/share/pear/Horde/Core/Auth/Application.php:366
22. call_user_func_array() /usr/share/pear/Horde/Registry.php:1173
23. IMP_Application->authTransparent()
24. IMP_Auth::transparent() /var/www/horde/imp/lib/Application.php:365
25. IMP_Auth::authenticate() /var/www/horde/imp/lib/Auth.php:118
26. IMP_Imap->createImapObject() /var/www/horde/imp/lib/Auth.php:79
27. Horde_Imap_Client_Socket->__construct()  
/var/www/horde/imp/lib/Imap.php:234
28. Horde_Imap_Client_Base->__construct()  
/usr/share/pear/Horde/Imap/Client/Socket.php:171
29. Horde::debug() /usr/share/pear/Horde/Imap/Client/Base.php:256






More information about the bugs mailing list