Commit 5c984ea7 authored by skummer's avatar skummer

ZP-117

- fixed: returning SYNC_MEETRESPSTATUS_INVALIDMEETREQ if meeting request can not be found/opened

git-svn-id: https://z-push.org/svn/z-push/trunk@1320 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 04f189fa
...@@ -845,11 +845,11 @@ class BackendZarafa implements IBackend, ISearchProvider { ...@@ -845,11 +845,11 @@ class BackendZarafa implements IBackend, ISearchProvider {
// Use standard meeting response code to process meeting request // Use standard meeting response code to process meeting request
$reqentryid = mapi_msgstore_entryidfromsourcekey($this->store, hex2bin($folderid), hex2bin($requestid)); $reqentryid = mapi_msgstore_entryidfromsourcekey($this->store, hex2bin($folderid), hex2bin($requestid));
if (!$reqentryid) if (!$reqentryid)
throw new StatusException(sprintf("BackendZarafa->MeetingResponse('%s', '%s', '%s'): Error, unable to entryid of the message 0x%X", $requestid, $folderid, $response, mapi_last_hresult()), SYNC_MEETRESPSTATUS_MAILBOXERROR); throw new StatusException(sprintf("BackendZarafa->MeetingResponse('%s', '%s', '%s'): Error, unable to entryid of the message 0x%X", $requestid, $folderid, $response, mapi_last_hresult()), SYNC_MEETRESPSTATUS_INVALIDMEETREQ);
$mapimessage = mapi_msgstore_openentry($this->store, $reqentryid); $mapimessage = mapi_msgstore_openentry($this->store, $reqentryid);
if(!$mapimessage) if(!$mapimessage)
throw new StatusException(sprintf("BackendZarafa->MeetingResponse('%s','%s', '%s'): Error, unable to open request message for response 0x%X", $requestid, $folderid, $response, mapi_last_hresult()), SYNC_MEETRESPSTATUS_MAILBOXERROR); throw new StatusException(sprintf("BackendZarafa->MeetingResponse('%s','%s', '%s'): Error, unable to open request message for response 0x%X", $requestid, $folderid, $response, mapi_last_hresult()), SYNC_MEETRESPSTATUS_INVALIDMEETREQ);
$meetingrequest = new Meetingrequest($this->store, $mapimessage); $meetingrequest = new Meetingrequest($this->store, $mapimessage);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment