Author Topic: AquaMail creates duplicate calendars  (Read 12468 times)

Taliesyn

  • Newbie
  • *
  • Posts: 8
AquaMail creates duplicate calendars
« on: April 20, 2015, 02:54:52 pm »
Hi,

    I just installed the latest version of AquaMail to access my company's OWA service. I have had no issues with the mail part so far, but the Calendar sync keeps creating new copies of the calendar on my OnePlus One.

Basically, I get this in Google Agenda :

account @ mycompany.com
    Calendar
    Calendar
    Calendar
    Calendar
    Calendar
    Calendar

And it keeps adding new calendars regularly, so I get a ton of entries for each meeting.

Am I missing something obvious, or could it be a bug?

[EDIT] Also, deactivating calendar sync doesn't remove the calendars, I have to remove my account and recreate it entirely to get rid of the duplicate events.
« Last Edit: April 20, 2015, 03:15:32 pm by Taliesyn »

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: AquaMail creates duplicate calendars
« Reply #1 on: April 20, 2015, 05:21:33 pm »
Can't see it from here, debug log please.

With the log enabled (and the log should have "raw session data") -- open the Calendar app and "Refresh", wait for the new calendar entry and its events to appear, "Refresh again", 2-3 times should be enough.

PS - Oh no, another weird bug specific to OnePlus One :)
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/

pyler

  • Sr. Member
  • ****
  • Posts: 412
Re: AquaMail creates duplicate calendars
« Reply #2 on: April 21, 2015, 04:38:57 pm »
Oh, they broke it :/  :(
Try to report it on CM bug tracker. It is funny how some devices passed CTS tests :D broken API, amazing unknown NPEs etc.
Do you want to use the latest AquaMail version?
Try AquaMail Updater!

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: AquaMail creates duplicate calendars
« Reply #3 on: April 21, 2015, 08:34:46 pm »
May be an Aqua bug, something subtle that doesn't happen on my 5-7 Android devices here...

There was one interesting bug earlier, where the user had a privacy protecting app installed (and Calendar access blocked), and so my code was able to access its own calendars some of the time, but not always, as expected.

A debug log is the only way for me to see what's going on.

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/

Taliesyn

  • Newbie
  • *
  • Posts: 8
Re: AquaMail creates duplicate calendars
« Reply #4 on: April 22, 2015, 10:56:48 am »
There was one interesting bug earlier, where the user had a privacy protecting app installed (and Calendar access blocked), and so my code was able to access its own calendars some of the time, but not always, as expected.

A debug log is the only way for me to see what's going on.
Turns out you won't need a debug log, you nailed it.

The OnePlus comes with CyanogenMod pre-installed, which includes all the privacy settings that Google briefly introduced in Android before removing them. In my case, any new app automatically gets those privacy settings applied, preventing Calendar access among other things.

I'm guessing AquaMail can't read the calendars, and keeps recreating new ones since it can't find it.

Anyway, sorry about the wrong bug report, this ended up to be more of a support request.

Regards,

   Dan

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: AquaMail creates duplicate calendars
« Reply #5 on: April 25, 2015, 01:22:38 am »
Yes, exactly what's going on.

Two interesting twists:

- Aqua's access to system calendar is always "as sync adapter" -- not "some app wanting to read the user's calendars" but as "an app whose purpose is to sync data with system calendar".

Obviously, access "as sync adapter" should not be blocked by privacy settings.

And the cherry on top:

- Why didn't this "privacy protector" prevent Calendars from being created? Not very much of a "protector" then.

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/