Bug #14205 [Csd]: fetch the CAPABILITY string send after STARTTLS
| From: | till@php.net | Date: | Tue, 22 Sep 2009 13:36:23 +0000 |
| Subject: | Bug #14205 [Csd]: fetch the CAPABILITY string send after STARTTLS | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-1696@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=14205&edit=1
ID: 14205
Updated by: till@php.net
Reported By: michael dot menge at zdv dot uni-tuebingen dot de
Summary: fetch the CAPABILITY string send after STARTTLS
Status: Closed
Type: Bug
Package: Net_Sieve
Package Version: 1.1.6
PHP Version: 5.2.5
Assigned To: yunosh
Roadmap Versions:
New Comment:
I just wanted to add a comment for completeness.
Net_Sieve is not at fault here. The full story is here:
http://lists.roundcube.net/mail-archive/dev/2009-09/0000141.html
Previous Comments:
------------------------------------------------------------------------
[2009-09-02 15:59:00] yunosh
-Status: Feedback
+Status: Closed
------------------------------------------------------------------------
[2009-08-21 16:30:52] yunosh
-Status: Closed
+Status: Feedback
Are you saying that the doCmd call does not return on your system?
------------------------------------------------------------------------
[2009-08-21 15:53:59] francis
Hi. I'm using Net_Sieve via the managesieve plugin for the RoundCube
PHP IMAP client. It seems the recent change of a call to _doCmd() has
broken my setup which uses Cyrus 2.2.13 as packaged in Debian. Current
behaviour now appears to consist of blocking at the call to _doCmd().
It would be nice if both behaviours could be supported as it looks like
there's been an awful lot of confusion about what it's actually meant to
be.
------------------------------------------------------------------------
[2009-07-24 18:40:04] yunosh
-Status: Assigned
+Status: Closed
-Assigned To: amistry
+Assigned To: yunosh
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download
at
http://pear.php.net/get/
------------------------------------------------------------------------
[2009-04-27 12:16:05] alec
--- Sieve.old 2009-03-13 18:45:29.000000000 +0100
+++ Sieve.php 2009-04-01 08:37:29.544409744 +0200
@@ -1128,8 +1128,18 @@
if($this->_debug === true) {
echo "STARTTLS Negotiation Successful\n";
}
+
+ // skip capability strings received after STARTTLS
+ // wait for OK "TLS negotiation successful."
+ if(PEAR::isError($ret = $this->_doCmd() )) {
+ $msg='Failed to establish TLS connection, server said: ' .
$res->getMessage();
+ $code=2;
+ return $this->_raiseError($msg,$code);
+ }
// RFC says we need to query the server capabilities again
+ // @TODO: don't call for capabilities if they are returned
+ // in tls negotiation result above
if(PEAR::isError($res = $this->_cmdCapability() )) {
$msg='Failed to connect, server said: ' .
$res->getMessage();
$code=2;
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=14205
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=14205&edit=1