From: Michael J. Rubinsky Date: Thu, 8 Apr 2010 14:24:44 +0000 (-0400) Subject: Some clients send a PROVISION command even when it's not told to do so by the server. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c9afabb232db6f3976f7a3cc9d3b1647ac91ee07;p=horde.git Some clients send a PROVISION command even when it's not told to do so by the server. We must check our provision setting when we receive a PROVISION request, and send back a NOT_DEFINED status code if no policy exists on the server. --- diff --git a/framework/ActiveSync/lib/Horde/ActiveSync/Request/Provision.php b/framework/ActiveSync/lib/Horde/ActiveSync/Request/Provision.php index 319d602ab..0e777788a 100644 --- a/framework/ActiveSync/lib/Horde/ActiveSync/Request/Provision.php +++ b/framework/ActiveSync/lib/Horde/ActiveSync/Request/Provision.php @@ -100,6 +100,11 @@ class Horde_ActiveSync_Request_Provision extends Horde_ActiveSync_Request_Base return $this->_globalError(self::STATUS_PROTERROR); } + /* Check to be sure that we *need* to PROVISION */ + if ($this->_provisioning === false) { + $policyStatus = self::STATUS_NOTDEFINED; + } + /* POLICYKEY is only sent by client in phase 3 */ if ($this->_decoder->getElementStartTag(SYNC_PROVISION_POLICYKEY)) { $policykey = $this->_decoder->getElementContent();