Menu

#672 Deletion of one time event fails with office 365

v4.8.3
closed-fixed
nobody
3
2019-10-07
2018-01-30
No

Hi.
Using davmail 4.8.3, the deletion of a one-time event with no recipient fails, with and without the davmail.caldavRealUpdate set to true. The message is :

 ErrorInvalidRecipients At least one recipient isn't valid., A message can't be sent because it contains no recipients

To delete the event, I have to restart davmail.

I use davmail v4.8.3 with thunderbird 52.5.0, lightning 5.4.5 and office 365.

Discussion

  • H B

    H B - 2018-02-21

    Yes, I witnessed the same effect. Thunderbird responds with "MODIFICATION_FAILED", and the event status keeps appearing as "cancelled" on the server, while Thunderbird keeps bouncing the error when attempting to remove it.
    My only remedy was to revert to v4.8.2, where this problem does not exist.

     
  • Michael Heyns

    Michael Heyns - 2018-03-12

    I can confirm the same behaviour. DavMail v4.8.3, Thunderbird 60 (nightly), on-prem exchange 2010. I created an event to try and test another problem (co-workers are complaining I'm sending meeting accepts every half an hour since updating)

    MODIFICATION_FAILED

    My error is a bit different, though:

    2018-03-12 13:21:34,910 ERROR [CaldavConnection-42498] davmail  - ErrorCalendarIsNotOrganizer User must be an organizer for CancelCalendarItem action.
     request: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"><soap:Header><t:RequestServerVersion Version="Exchange2010_SP1"/></soap:Header><soap:Body><m:CreateItem SendMeetingInvitations="SendToAllAndSaveCopy" MessageDisposition="SendAndSaveCopy"><m:SavedItemFolderId><t:DistinguishedFolderId Id="sentitems"/></m:SavedItemFolderId><m:Items><t:CancelCalendarItem><t:ReferenceItemId Id="AAMkADI0N2E4YmQ4LTgyYjEtNDg0YS05ZmE5LTAzZDFhYxxxmZjMgBGxxxxCVvx2TgStrQ4KCx6p9+qlvBwA69Myct3YeR7470XhEH+m7AAAA6VxEAAA69Myct3YeR7470XhEH+m7AAAA8ulCAAA=" ChangeKey="DwAAABYxxxx69Myct3YeR7470XhEH+m7AAAA9D5s"/></t:CancelCalendarItem></m:Items></m:CreateItem></soap:Body></soap:Envelope>
    davmail.exchange.ews.EWSException: ErrorCalendarIsNotOrganizer User must be an organizer for CancelCalendarItem action.
     request: <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"><soap:Header><t:RequestServerVersion Version="Exchange2010_SP1"/></soap:Header><soap:Body><m:CreateItem SendMeetingInvitations="SendToAllAndSaveCopy" MessageDisposition="SendAndSaveCopy"><m:SavedItemFolderId><t:DistinguishedFolderId Id="sentitems"/></m:SavedItemFolderId><m:Items><t:CancelCalendarItem><t:ReferenceItemId Id="AAMkADI0N2E4YmQ4LTgyYjEtNDg0YS05ZmE5LTAzZDFhYzkyZmZjMgBGAAAAAACVvx2TgStrQ4KCx6p9+qlvBwA69Myct3xxxxxxx+m7AAAA6VxEAAA69Myct3YeR7470XhEH+m7AAAA8ulCAAA=" ChangeKey="DwAAABYxxxx69Myct3YeR7470XhEH+m7AAAA9D5s"/></t:CancelCalendarItem></m:Items></m:CreateItem></soap:Body></soap:Envelope>
            at davmail.exchange.ews.EWSMethod.checkSuccess(EWSMethod.java:754)
            at davmail.exchange.ews.EwsExchangeSession.internalExecuteMethod(EwsExchangeSession.java:2857)
            at davmail.exchange.ews.EwsExchangeSession.executeMethod(EwsExchangeSession.java:2824)
            at davmail.exchange.ews.EwsExchangeSession.deleteItem(EwsExchangeSession.java:2543)
            at davmail.caldav.CaldavConnection.handleFolderOrItem(CaldavConnection.java:296)
            at davmail.caldav.CaldavConnection.handleRequest(CaldavConnection.java:227)
            at davmail.caldav.CaldavConnection.run(CaldavConnection.java:170)
    
     

    Last edit: Michael Heyns 2018-03-12
  • Mickael Guessant

    Fixed in trunk

     
  • Mickael Guessant

    • status: open --> pending-fixed
     
  • Mickael Guessant

    • status: pending-fixed --> closed-fixed
     
  • Mickael Guessant

    Released in 4.8.6

     
  • Stephan Frye

    Stephan Frye - 2019-10-01

    Hi,
    I got the same error with verson 5.3.1.
    Any ideas?

    davmail.exchange.ews.EWSException: ErrorCalendarIsNotOrganizer User must be an organizer for CancelCalendarItem action.
    request: <soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages"><soap:header><t:requestserverversion version="Exchange2010_SP1"></t:requestserverversion></soap:header><soap:body><m:createitem messagedisposition="SendAndSaveCopy" sendmeetinginvitations="SendToAllAndSaveCopy"><m:saveditemfolderid><t:distinguishedfolderid id="user-content-sentitems"></t:distinguishedfolderid></m:saveditemfolderid><m:items><t:cancelcalendaritem><t:referenceitemid id="user-content-AAMkADlhNzVjOTRmLWZjZTMtNDRiZC1hZjIyLTAyM2JkZjk2YjVhYgBGAAAAAABDVw4R55ZRS7M0g83rZVtmBwBh8DzYHGEZQZ66JLBfPjpbAAAAQA9TAACYP7ckP8VIRqU9DEZHmTqiAAAGLkejAAA=" changekey="DwAAABYAAACYP7ckP8VIRqU9DEZHmTqiAAAGMNyM"></t:referenceitemid></t:cancelcalendaritem></m:items></m:createitem></soap:body></soap:envelope>
    at davmail.exchange.ews.EWSMethod.checkSuccess(EWSMethod.java:778)
    at davmail.exchange.ews.EwsExchangeSession.internalExecuteMethod(EwsExchangeSession.java:2958)
    at davmail.exchange.ews.EwsExchangeSession.executeMethod(EwsExchangeSession.java:2922)
    at davmail.exchange.ews.EwsExchangeSession.deleteItem(EwsExchangeSession.java:2593)
    at davmail.caldav.CaldavConnection.handleFolderOrItem(CaldavConnection.java:304)
    at davmail.caldav.CaldavConnection.handleRequest(CaldavConnection.java:235)
    at davmail.caldav.CaldavConnection.run(CaldavConnection.java:178)

     
    • Mickael Guessant

      DavMail tries to cancel an event that you do not own. Is this event in a shared calendar ?
      If yes this is fixed in trunk
      If not there is something else => need to understand the error in event owner detection.

       
  • Stephan Frye

    Stephan Frye - 2019-10-04

    Hei,
    It's not a shared calendar and the error came up with all version down to 4.8.6. so I check the setup for the calendar in Thunderbird. I doulbe checked the instructions (http://davmail.sourceforge.net/thunderbirdcalendarsetup.html) and found that I had an alias of the email address in the position of " mail@company.com ". Deleting the old calendar setup and setting up a new calendar with the correct account name fixed the problem. Just weird that it worked before with alle the outher interactions but started to give a problem after I got an event retraction / cancelation sent and tried to accept it.
    Thanks for your concerns and help.

     
  • Mickael Guessant

    On older DavMail versions we simply deleted events on DELETE. Now we try to detect meeting deletions to trigger a cancel event instead. In your case somehow the detection failed to recognize that the meeting owner was someone else.

     

Log in to post a comment.

Monday.com Logo