Author Topic: Calendar sync with Exchange  (Read 13098 times)

trez32

  • Newbie
  • *
  • Posts: 11
Calendar sync with Exchange
« on: May 30, 2015, 06:31:33 am »
I'm having a few issues that I can't seem to figure out.  I'm using AquaMail on both a Moto X and a Samsung Galaxy Tablet 4. 

a) Appointments added via the device's calendar using the AquaMail exchange sync show up on the server as meeting invite from myself to no-one rather than just as a meeting I added.  (see attached server views of a normal meeting and one set up via AquaMail exchange sync)
b) When I add an invitee to a new meeting added via the device's calendar using AquaMail exchange sync, the meeting invite does go out but does not appear in the sent items list as an sent message like invites do when sent from the server itself.
c) When I make a change via the device's calendar using AquaMail exchange sync to an existing meeting that already includes other invitees, the meeting update is never sent to the other invitees.

Thank you in advance for helping.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Calendar sync with Exchange
« Reply #1 on: May 30, 2015, 11:34:39 pm »
a - I've not seen this "Outlook the app", but Aqua's "self created reminders" appear fine in Outlook 365 "the web site".

I do have Outlook 365 "the Windows app" though, will take a look.

So the only difference is the "you never sent this invite" note?

b - Yes, I never implemented that part, wasn't sure if it was needed, or would be a nuisance

c - Interesting.

When updating an event, I'm asking Exchange to "send notices to all affected attendees". It's a standard part of the "update event" command.

Looks like adding an attendee triggers it (sending to both old and new ones) -- but changing an event's time (or description) doesn't.

This seems wrong, but I also vaguely remember that it did trigger on time / description changes before.

Is your account @ Office 365 or Exchange Online? Maybe something changed there (based on what I vaguely remember)?

What I can do here is ask Exchange to send notifications to all attendees -- I've tested and that works on time and description changes -- what do you think?
« Last Edit: May 30, 2015, 11:39:29 pm by Kostya Vasilyev, Aqua Mail »
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Calendar sync with Exchange
« Reply #2 on: May 31, 2015, 12:11:56 am »
a - Just checked it out in Outlook "the Windows app" -- yep, the reminder "maybe you forgot to send this meeting invite" is there, even though the appointment has no attendees.

Maybe it's getting triggered by the event having an organizer (the user him / her self), but that's who it is creating the event... Not sure, will need to experiment.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Calendar sync with Exchange
« Reply #3 on: May 31, 2015, 02:22:26 am »
I just fixed "a":

If there are no attendees, I tell the server to "send notifications to None" -- and Outlook "the Windows app" no longer shows appointments with "You haven't sent the invites".

Now, as far as "c":

I've tried telling Exchange to "send notifications to everyone" when updating an event -- but this also triggers when editing an event's color (category) or reminders, which doesn't make sense either.

The way it is in the released version -- asking the server to figure out what's changed and only notify those attendees affected by the actual changes -- is how it's supposed to work, and I (vaguely) believe it did, in the past. I do test my stuff :)

So again, it would help me to know if you're using Office 365 / Exchange Online, because that's where my test account is.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

trez32

  • Newbie
  • *
  • Posts: 11
Re: Calendar sync with Exchange
« Reply #4 on: May 31, 2015, 02:39:59 am »
Thanks for replying so quickly. You've already fixed A. Regarding B, I assumed it was related to C. Not a big deal if B is addressed. Regarding your question on C, I am using an office 365 account. I would think that changes to time, meeting title, and description are the ones that need to send notifications to attendees. Thanks again!

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Calendar sync with Exchange
« Reply #5 on: May 31, 2015, 10:00:20 pm »
Here is the situation: I'm in the middle of a staged rollout of version 1.5.7, so for every change / fix I have to consider how safe it is.

A - Was safe, already fixed, will post tonight.

B - Requires more changes than I'm comfortable with for the current 1.5.7.

Will add in -dev builds of the next version (1.5.9), to be posted on the forum first, as usual.

C - Serious "hole", needs to be fixed in 1.5.7, even if you're the only one who noticed (or noticed and reported).

Needs additional logic on the app's side, should take a day or two, will post here on the forum -- with the idea of being able to include it in the final step of rolling out 1.5.7, when going from enabled for 50% of all users to enabled for 100% (everyone).
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

trez32

  • Newbie
  • *
  • Posts: 11
Re: Calendar sync with Exchange
« Reply #6 on: May 31, 2015, 11:31:36 pm »
Sounds great. This is probably a dumb question, but I seem to have AquaMail version 1.5.7.10 installed on both devices. Once you post updates to A & C, will it automatically show up as an upgrade version for me to download from the play store, or how should I go about getting those fixes on my devices? Thanks a bunch.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Calendar sync with Exchange
« Reply #7 on: May 31, 2015, 11:38:10 pm »
Yes, 1.5.7.10 is the latest in Play.

I'm not going to update Play tonight -- only post on the forum (shortly).

The forum .apk's are "built for Play uploading" except I don't necessarily upload there every time.

You can freely update the forum versions over the Play versions and vice versa (as long as you're moving "forward", as Android won't let you downgrade).

In terms of getting an update notification from Play, later, when there is a newer version still -- it's *supposed* to work, and I understand that it does, most of the time (minus the inevitable Play glitches that do happen anyway).
« Last Edit: May 31, 2015, 11:40:13 pm by Kostya Vasilyev, Aqua Mail »
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Calendar sync with Exchange
« Reply #8 on: June 02, 2015, 01:27:24 am »
@trez32 --

I just posted a new build with proper notifications after calendar event editing (with respect to notifying attendees).

Please try it out:

http://www.aqua-mail.com/forum/index.php?topic=3618.0
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

trez32

  • Newbie
  • *
  • Posts: 11
Re: Calendar sync with Exchange
« Reply #9 on: June 02, 2015, 06:08:15 am »
I just tried it out with a few tests, and it seems to be working well. I'll run some more tests on it tomorrow, too. Very impressed with how quickly you responded with a fix. Thanks a bunch. Very happy customer here.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Calendar sync with Exchange
« Reply #10 on: June 02, 2015, 12:37:42 pm »
Great, please let me know how those more tests go.

This issue / bug deserved to be taken seriously, so thanks for reporting it in the first place.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

trez32

  • Newbie
  • *
  • Posts: 11
Re: Calendar sync with Exchange
« Reply #11 on: June 03, 2015, 12:46:55 am »
I did a lot of testing today, and I'm a little confused by the results.  The fixes for C and for A seem to be working fine.  However, I did discover what seems to be an issue that has me concerned.  For meetings that were originally set up via AquaMail or via the O365 server (accessed on a browser), no problems.  However, for meetings that both (a) were orginally set up via the Microsoft Outlook desktop app that's synced with O365 (and has been used a lot with no apparent problems) and (b) have zero other meeting invitees, then this problem occurs:  when I changed either the meeting title or meeting time using the AquaMail app, the change was not synced back to the server.  Oddly enough, if there are other invitees, then AquaMail syncs the title or time change back to the server as expected (and the other invitees are notified).  Also, if the meeting was originally set up via AquaMail or via the O365 server, then AquaMail syncs the title or time change back to the server as expected.  I know this sounds odd, but I've tested it a few different ways, and I'm pretty confident in the results.  Any idea what's going on?

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Calendar sync with Exchange
« Reply #12 on: June 03, 2015, 01:01:09 am »
Hmmm.... From the app's point of view, there are events originally created in Android, and events that were originally synced from the server.

How they got to the server is irrelevant (Outlook 365 / web or Outlook for Windows)... or "should be" -- since you're obviously seeing a difference.

Wonder if you could capture the issue in the app's debug log -- from creating an appointment in Outlook for Windows, to syncing it from there to the server (those parts won't be in the log, it's just to start from a clean slate) -- to syncing the new event to Android, and finally editing on Android and syncing (or trying to sync) to the server.

I will try to test this scenario too, but logging could be useful just in case I'm not able to reproduce.

Logging is described here: http://www.aqua-mail.com/?page_id=232 under "Creating a log if something doesn’t work right".
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Calendar sync with Exchange
« Reply #13 on: June 03, 2015, 01:05:03 am »
Oh, could you also clarify if this:

Quote
a) were orginally set up via the Microsoft Outlook desktop app that's synced with O365 (and has been used a lot with no apparent problems) and (b) have zero other meeting invitees

means two separate scenarios --

a) meetings with attendees, created in Outlook for Windows and b) appointments with zero attendees, created in Outlook for Windows

or one scenario --

meetings without attendees (appointments) created in Outlook for Windows?

Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

trez32

  • Newbie
  • *
  • Posts: 11
Re: Calendar sync with Exchange
« Reply #14 on: June 03, 2015, 02:38:00 am »
I'll give the logging a try, but I'm out right now so it will be a while. In the meantime, just to clarify, it is one scenario where the meeting is created in outlook for Windows AND there are no meeting invitees. Thanks