AquaMail Forum

English - Android => Bug reports => Topic started by: Taliesyn on April 20, 2015, 02:54:52 pm

Title: AquaMail creates duplicate calendars
Post by: Taliesyn 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.
Title: Re: AquaMail creates duplicate calendars
Post by: Kostya Vasilyev 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 :)
Title: Re: AquaMail creates duplicate calendars
Post by: pyler 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.
Title: Re: AquaMail creates duplicate calendars
Post by: Kostya Vasilyev 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.

Title: Re: AquaMail creates duplicate calendars
Post by: Taliesyn 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
Title: Re: AquaMail creates duplicate calendars
Post by: Kostya Vasilyev 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.