Cannot synch due to TimeZone bug?


  • Hello,

    DAVx5 has been telling for some days now that it cannot synch with the iCloud account, and looking at the debug info, it looks like there is a TimeZone error. This used to synchronize, and I cannot recall any particular event that disrupted the normal synch. I would very much appreciate any support toward the resolution of this issue.

    Below the debug info:

    --- BEGIN DEBUG INFO ---
    
    SYNCHRONIZATION INFO
    Account: Account {name=iCloud, type=bitfire.at.davdroid}
    Authority: com.android.calendar
    
    EXCEPTION
    at.bitfire.ical4android.InvalidCalendarException: Couldn't parse iCalendar
    	at at.bitfire.ical4android.ICalendar$Companion.fromReader(ICalendar.kt:10)
    	at at.bitfire.ical4android.Event$Companion.eventsFromReader(Event.kt:1)
    	at at.bitfire.ical4android.Event$Companion.eventsFromReader$default(Event.kt:1)
    	at at.bitfire.davdroid.syncadapter.CalendarSyncManager.processVEvent(CalendarSyncManager.kt:1)
    	at at.bitfire.davdroid.syncadapter.CalendarSyncManager.access$processVEvent(CalendarSyncManager.kt:1)
    	at at.bitfire.davdroid.syncadapter.CalendarSyncManager$downloadRemote$1$1$1.invoke(CalendarSyncManager.kt:8)
    	at at.bitfire.davdroid.syncadapter.CalendarSyncManager$downloadRemote$1$1$1.invoke(CalendarSyncManager.kt:1)
    	at at.bitfire.davdroid.syncadapter.SyncManager.responseExceptionContext(SyncManager.kt:1)
    	at at.bitfire.davdroid.syncadapter.CalendarSyncManager$downloadRemote$1$1.invoke(CalendarSyncManager.kt:2)
    	at at.bitfire.davdroid.syncadapter.CalendarSyncManager$downloadRemote$1$1.invoke(CalendarSyncManager.kt:1)
    	at at.bitfire.dav4jvm.Response$Companion.parse(Response.kt:46)
    	at at.bitfire.dav4jvm.DavResource$processMultiStatus$2.invoke(DavResource.kt:9)
    	at at.bitfire.dav4jvm.DavResource.processMultiStatus(DavResource.kt:14)
    	at at.bitfire.dav4jvm.DavResource.processMultiStatus(DavResource.kt:5)
    	at at.bitfire.dav4jvm.DavCalendar.multiget(DavCalendar.kt:10)
    	at at.bitfire.davdroid.syncadapter.CalendarSyncManager$downloadRemote$1.invoke(CalendarSyncManager.kt:2)
    	at at.bitfire.davdroid.syncadapter.CalendarSyncManager$downloadRemote$1.invoke(CalendarSyncManager.kt:1)
    	at at.bitfire.davdroid.syncadapter.SyncManager.remoteExceptionContext(SyncManager.kt:1)
    	at at.bitfire.davdroid.syncadapter.SyncManager.remoteExceptionContext(SyncManager.kt:8)
    	at at.bitfire.davdroid.syncadapter.CalendarSyncManager.downloadRemote(CalendarSyncManager.kt:2)
    	at at.bitfire.davdroid.syncadapter.SyncManager$syncRemote$1$1$1.invokeSuspend(SyncManager.kt:2)
    	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:3)
    	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:15)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    	at java.lang.Thread.run(Thread.java:919)
    Caused by: net.fortuna.ical4j.data.ParserException: Error at line 27:TimeZone is not applicable to current value
    	at net.fortuna.ical4j.data.CalendarParserImpl.parse(CalendarParserImpl.java:17)
    	at net.fortuna.ical4j.data.CalendarBuilder.build(CalendarBuilder.java:3)
    	at net.fortuna.ical4j.data.CalendarBuilder.build(CalendarBuilder.java:2)
    	at at.bitfire.ical4android.ICalendar$Companion.fromReader(ICalendar.kt:4)
    	... 25 more
    Caused by: java.lang.UnsupportedOperationException: TimeZone is not applicable to current value
    	at net.fortuna.ical4j.model.property.DateListProperty.setTimeZone(DateListProperty.java:8)
    	at net.fortuna.ical4j.data.DefaultContentHandler.resolveTimezones(DefaultContentHandler.java:8)
    	at net.fortuna.ical4j.data.DefaultContentHandler.endCalendar(DefaultContentHandler.java:1)
    	at net.fortuna.ical4j.data.CalendarParserImpl.parseCalendar(CalendarParserImpl.java:10)
    	at net.fortuna.ical4j.data.CalendarParserImpl.parseCalendarList(CalendarParserImpl.java:2)
    	at net.fortuna.ical4j.data.CalendarParserImpl.parse(CalendarParserImpl.java:13)
    	... 28 more
    
    REMOTE RESOURCE
    https://p58-caldav.icloud.com/1046590994/calendars/z-20160804-081427-698-001/4447-07E00804-03A8-0810-FF2F-03D0D.ics
    
    SOFTWARE INFORMATION
    
    ┌────────────────────────────────────────┬──────────────────────────────────┬────────────┬─────────────────────────────────────┬──────────┐
    │ Package                                │ Version                          │ Code       │ Installer                           │ Notes    │
    ├────────────────────────────────────────┼──────────────────────────────────┼────────────┼─────────────────────────────────────┼──────────┤
    │ at.bitfire.davdroid                    │ 3.3.10-gplay                     │ 303100003  │ com.android.vending                 │          │
    │ com.samsung.android.providers.contacts │ 11.5.10                          │ 1151004000 │ —                                   │          │
    │ com.android.providers.calendar         │ 11.0.00.15                       │ 1100000015 │ —                                   │          │
    │ com.samsung.android.app.contacts       │ 11.5.03.24                       │ 1150300024 │ —                                   │          │
    │ com.samsung.android.calendar           │ 11.6.02.0                        │ 1160200000 │ com.sec.android.app.samsungapps     │          │
    │ com.appgenix.bizcal                    │ 2.33.2                           │ 233202     │ com.google.android.packageinstaller │          │
    │ com.microsoft.office.outlook           │ 4.2114.2                         │ 42114807   │ com.android.vending                 │          │
    │ com.mobisystems.office                 │ 10.1.16353                       │ 16353      │ com.google.android.packageinstaller │ disabled │
    │ com.google.android.apps.messaging      │ 7.8.064 (Oak_RC01.phone_dynamic) │ 78064063   │ com.android.vending                 │          │
    └────────────────────────────────────────┴──────────────────────────────────┴────────────┴─────────────────────────────────────┴──────────┘
    
    
    SYSTEM INFORMATION
    
    Android version: 10 (QP1A.190711.020.G960U1UES9FUC1)
    Device: samsung SM-G960U1 (starqlteue)
    Locale(s): [en_US,fr_FR]
    
    
    CONNECTVITY
    
     ☒ wlan0
       - [ Transports: WIFI Capabilities: NOT_METERED INTERNET NOT_RESTRICTED TRUSTED NOT_VPN VALIDATED NOT_ROAMING FOREGROUND NOT_CONGESTED NOT_SUSPENDED LinkUpBandwidth>=1048576Kbps LinkDnBandwidth>=1048576Kbps SignalStrength: -44]
       - DNS: 2001:41d0:3:163::1, 2001:41d0:1:e2b8::1, 91.121.58.181, 87.98.149.171
    
    Data saver: disabled
    
    
    CONFIGURATION
    
    Power saving disabled: yes
    System-wide synchronization: automatically
    
    Notifications:
     - sync isBlocked=false
      * syncProblems: importance=3
      * syncIoErrors: importance=1
      * syncWarnings: importance=2
     - cert4android: importance=3
     - status: importance=2
     - general: importance=3
     - debug: importance=4
    
    Permissions:
     - ACCESS_NETWORK_STATE: granted
     - ACCESS_WIFI_STATE: granted
     - FOREGROUND_SERVICE: granted
     - INTERNET: granted
     - READ_SYNC_SETTINGS: granted
     - READ_SYNC_STATS: granted
     - WRITE_SYNC_SETTINGS: granted
     - RECEIVE_BOOT_COMPLETED: granted
     - REQUEST_IGNORE_BATTERY_OPTIMIZATIONS: granted
     - READ_CONTACTS: granted
     - WRITE_CONTACTS: granted
     - READ_CALENDAR: granted
     - WRITE_CALENDAR: granted
     - ACCESS_COARSE_LOCATION: denied
     - ACCESS_FINE_LOCATION: denied
     - ACCESS_BACKGROUND_LOCATION: denied
     - org.dmfs.permission.READ_TASKS: denied
     - org.dmfs.permission.WRITE_TASKS: denied
     - org.tasks.permission.READ_TASKS: denied
     - org.tasks.permission.WRITE_TASKS: denied
    
    
    ACCOUNTS
    
     - Account: xxx@xxx
    
    ┌──────────────────────────────────┬──────────┬───────────┬──────────┬───────────────────────────────────┐
    │ Authority                        │ Syncable │ Auto-sync │ Interval │ Entries                           │
    ├──────────────────────────────────┼──────────┼───────────┼──────────┼───────────────────────────────────┤
    │ at.bitfire.davdroid.addressbooks │ 1        │ true      │ 240 min  │ —                                 │
    │ com.android.calendar             │ 1        │ true      │ 240 min  │ 379 event(s)                      │
    │ org.dmfs.tasks                   │ 0        │ false     │ 1440 min │ —                                 │
    │ org.tasks.opentasks              │ 0        │ false     │ 1440 min │ —                                 │
    │ com.android.contacts             │ 0        │ false     │ —        │ 0 wrongly assigned raw contact(s) │
    └──────────────────────────────────┴──────────┴───────────┴──────────┴───────────────────────────────────┘
    
      WiFi only: false
      Contact group method: GROUP_VCARDS
      Time range (past days): 90
      Default alarm (min before): null
      Manage calendar colors: true
      Use event colors: false
    
      * Address book: card (xxx@xxx kA)
        
        ┌──────────────────────┬──────────┬───────────┬──────────┬─────────────────────┐
        │ Authority            │ Syncable │ Auto-sync │ Interval │ Entries             │
        ├──────────────────────┼──────────┼───────────┼──────────┼─────────────────────┤
        │ com.android.contacts │ 1        │ true      │ 1440 min │ 1785 raw contact(s) │
        └──────────────────────┴──────────┴───────────┴──────────┴─────────────────────┘
        
        URL: https://p58-contacts.icloud.com/1046590994/carddavhome/card/
        Read-only: 1
    
    
    DATABASE DUMP
    
    android_metadata
    
    ┌────────┐
    │ locale │
    ├────────┤
    │ en_US  │
    └────────┘
    
    service
    
    ┌────┬─────────────────────────────┬─────────┬───────────────────────────────────────────────────┐
    │ id │ accountName                 │ type    │ principal                                         │
    ├────┼─────────────────────────────┼─────────┼───────────────────────────────────────────────────┤
    │ 3  │ xxx@xxx │ carddav │ https://contacts.icloud.com/1046590994/principal/ │
    │ 4  │ xxx@xxx │ caldav  │ https://caldav.icloud.com/1046590994/principal/   │
    └────┴─────────────────────────────┴─────────┴───────────────────────────────────────────────────┘
    
    sqlite_sequence
    
    ┌────────────┬─────┐
    │ name       │ seq │
    ├────────────┼─────┤
    │ service    │ 4   │
    │ homeset    │ 4   │
    │ collection │ 10  │
    └────────────┴─────┘
    
    homeset
    
    ┌────┬───────────┬─────────────────────────────────────────────────────────┬──────────┬─────────────────┬──────────┐
    │ id │ serviceId │ url                                                     │ privBind │ displayName     │ personal │
    ├────┼───────────┼─────────────────────────────────────────────────────────┼──────────┼─────────────────┼──────────┤
    │ 3  │ 3         │ https://p58-contacts.icloud.com/1046590994/carddavhome/ │ 1        │ —               │ 1        │
    │ 4  │ 4         │ https://p58-caldav.icloud.com/1046590994/calendars/     │ 1        │ StrangerInTheNite │ 1        │
    └────┴───────────┴─────────────────────────────────────────────────────────┴──────────┴─────────────────┴──────────┘
    
    collection
    
    ┌────┬───────────┬──────────────┬───────────────────────────────────────────────────────────────────────────────┬──────────────────┬────────────┬───────────────┬────────────────────────┬─────────────┬───────────┬──────────┬────────────────┬───────────────┬──────────────────┬────────┬──────┬───────────┬─────────────────────────────────────────────────────┐
    │ id │ serviceId │ type         │ url                                                                           │ privWriteContent │ privUnbind │ forceReadOnly │ displayName            │ description │ color     │ timezone │ supportsVEVENT │ supportsVTODO │ supportsVJOURNAL │ source │ sync │ homeSetId │ owner                                               │
    ├────┼───────────┼──────────────┼───────────────────────────────────────────────────────────────────────────────┼──────────────────┼────────────┼───────────────┼────────────────────────┼─────────────┼───────────┼──────────┼────────────────┼───────────────┼──────────────────┼────────┼──────┼───────────┼─────────────────────────────────────────────────────┤
    │ 6  │ 3         │ ADDRESS_BOOK │ https://p58-contacts.icloud.com/1046590994/carddavhome/card/                  │ 1                │ 1          │ 1             │ —                      │ —           │ —         │ —        │ —              │ —             │ —                │ —      │ 1    │ 3         │ —                                                   │
    │ 7  │ 4         │ CALENDAR     │ https://p58-caldav.icloud.com/1046590994/calendars/z-20160804-081427-698-001/ │ 1                │ 1          │ 1             │ Calendar               │ —           │ -14963208 │ —        │ 1              │ 0             │ 0                │ —      │ 1    │ 4         │ https://p58-caldav.icloud.com/1046590994/principal/ │
    │ 8  │ 4         │ CALENDAR     │ https://p58-caldav.icloud.com/1046590994/calendars/z-20191025-060139-265-002/ │ 1                │ 1          │ 0             │ Tasks                  │ —           │ -16745729 │ —        │ 0              │ 1             │ 0                │ —      │ 0    │ 4         │ https://p58-caldav.icloud.com/1046590994/principal/ │
    │ 9  │ 4         │ CALENDAR     │ https://p58-caldav.icloud.com/1046590994/calendars/z-20191029-202046-461-003/ │ 1                │ 1          │ 0             │ Tasks (from Trash)     │ —           │ -16745729 │ —        │ 0              │ 1             │ 0                │ —      │ 0    │ 4         │ https://p58-caldav.icloud.com/1046590994/principal/ │
    │ 10 │ 4         │ CALENDAR     │ https://p58-caldav.icloud.com/1046590994/calendars/z-20191103-032213-705-003/ │ 1                │ 1          │ 0             │ United States holidays │ —           │ -27392    │ —        │ 1              │ 0             │ 0                │ —      │ 0    │ 4         │ https://p58-caldav.icloud.com/1046590994/principal/ │
    └────┴───────────┴──────────────┴───────────────────────────────────────────────────────────────────────────────┴──────────────────┴────────────┴───────────────┴────────────────────────┴─────────────┴───────────┴──────────┴────────────────┴───────────────┴──────────────────┴────────┴──────┴───────────┴─────────────────────────────────────────────────────┘
    
    room_master_table
    
    ┌────┬──────────────────────────────────┐
    │ id │ identity_hash                    │
    ├────┼──────────────────────────────────┤
    │ 42 │ b8699ef3cc4c62e8851df4360fb69e00 │
    └────┴──────────────────────────────────┘
    
    
    APP SETTINGS
    
    1. SharedPreferencesProvider canWrite=true
    
    ┌────────────────────────────┬───────────┐
    │ Setting                    │ Value     │
    ├────────────────────────────┼───────────┤
    │ distrust_system_certs      │ false     │
    │ foreground_service         │ false     │
    │ hint_AutostartPermissions  │ false     │
    │ hint_OpenTasksNotInstalled │ false     │
    │ override_proxy             │ false     │
    │ override_proxy_host        │ localhost │
    │ override_proxy_port        │ 8118      │
    └────────────────────────────┴───────────┘
    
    2. DefaultsProvider canWrite=false
    
    ┌───────────────────────┬───────────┐
    │ Setting               │ Value     │
    ├───────────────────────┼───────────┤
    │ default_sync_interval │ 14400     │
    │ distrust_system_certs │ false     │
    │ override_proxy        │ false     │
    │ override_proxy_host   │ localhost │
    │ override_proxy_port   │ 8118      │
    └───────────────────────┴───────────┘
    
    --- END DEBUG INFO ---
    
  • developer

    @strangerinthenit said in Cannot synch due to TimeZone bug?:

    https://p58-caldav.icloud.com/1046590994/calendars/z-20160804-081427-698-001/4447-07E00804-03A8-0810-FF2F-03D0D.ics

    Hello,

    Seems like there is a timezone set vor a value that must not have a timezone.

    For more details, please download https://p58-caldav.icloud.com/1046590994/calendars/z-20160804-081427-698-001/4447-07E00804-03A8-0810-FF2F-03D0D.ics with your browser (same username / app-generated password as for DAVx⁵ login) and post an anonymized version here or send it over https://www.davx5.com/support


  • @rfc2822 below the content of 4447-07E00804-03A8-0810-FF2F-03D0D.ics anonymized:

    BEGIN:VCALENDAR
    CALSCALE:GREGORIAN
    PRODID:-//Apple Inc.//Apple WebDAV Outlook Store 4.9.11//EN
    VERSION:2.0
    X-CALENDARSERVER-ACCESS:PRIVATE
    BEGIN:VEVENT
    CREATED:20160719T173458Z
    DTSTAMP:20191105T080343Z
    DTSTART;VALUE=DATE:19960111
    LAST-MODIFIED:20191105T080343Z
    RRULE:FREQ=YEARLY;BYMONTH=1;BYMONTHDAY=11
    SEQUENCE:1
    SUMMARY:John’s Birthday
    UID:4447-07E00804-03A8-0810-FF2F-03D0D
    CLASS:PRIVATE
    DURATION:P1D
    ORGANIZER;PARTSTAT=ACCEPTED;CN=StrangerInTheNite:mailto:xxx@xxx
    ATTENDEE;PARTSTAT=ACCEPTED;CN=StrangerInTheNite;ROLE=CHAIR:mailto:xxx@xxx
    X-MICROSOFT-CDO-BUSYSTATUS:FREE
    X-CALENDARSERVER-ACCESS:PRIVATE
    X-APPLE-OL-MAPPING-INFO:1
    EXDATE;TZID=US/Pacific;VALUE=DATE:20200111
    TRANSP:TRANSPARENT
    END:VEVENT
    END:VCALENDAR

  • developer

    Thanks! I have not verified it, but I think it’s this property:

    EXDATE;TZID=US/Pacific;VALUE=DATE:20200111

    because VALUE=DATE means that the value is a date without time zone information, in this case 11 Jan 2020. The TZID value is invalid here and stops the ical4j parser.

    How did you create this specific event – what is Apple WebDAV Outlook Store? Seems like the problematic value comes from this software.

    Can you edit it for instance in the iCloud Web interface and see whether it syncs then? Or delete and re-create it.


  • @rfc2822 thank you.

    I have deleted the entry, it still does not synch, but I am giving it time, so far the debugger is not yet telling me anything. It simply does not synch.

    I use regular Outlook on Windows, coupled with iCloud for Windows to synch with iCloud. That’s the best way I have found to keep my Outlook calendar synch with my Android phone.

    I will post new debug messages if they appear.

    Thank you for your help

Similar topics