Task sync: Cannot set timezone for UTC properties


  • developer

    @leckelma Thanks for the report. Can you please provide the related task file (see DAVdroid logs) and/or a test account with tasks that cause the problem?

    I'd have to reproduce the problem here to have a look at it.


  • developer

    @leckelma Thanks for the logs. Your tasks contains

    COMPLETED;VALUE=DATE-TIME;TZID=Europe/Berlin:20140226T192557
    

    which cannot be parsed by ical4j/ical4android/DAVdroid because COMPLETED must not specify a timezone, but must be given as date with UTC time.

    Please fix your task (maybe editing in the Web interface is enough) and it should work. Can you confirm that?



  • @rfc2822 Hi, thanks for the Update. If i just know which Task it is. there are a lots of (completed) Task is this shared calendar.
    Should i delete all Completed tasks?

    Regards
    leckelma



  • Ok, maybe i found it. i have deleted one Task via WebUI without a subject.
    Now i can sync without error.

    Thanks for the hint.

    Cheers



  • This post is deleted!


  • Sorry for not replying earlier, I do not get E-Mail notifications by default and thus didn't notice there had been a reply.

    For me, the latest update to DavDroid 1.11.1-ose seems to have fixed it (or NextCloud's calendar 1.6.1?).



  • This post is deleted!


  • Hi!
    I'm facing this issue too. Is there an easy way to debug it?
    Thx!



  • Same issue on a FairPhone 2 Open with Android7... I uninstalled and reinstalled DAVdroid from F-Droid without success. I also use OpenTask and everything is synchroinised from a SOGo server (provided by gandi .net).

    I don't know how to debug this and how to find the buggy task or event... can you explain me how to do that ?

    --- BEGIN DEBUG INFO ---
    Account name: camille@nylnook.art
    Authority: org.dmfs.tasks
    
    REMOTE RESOURCE:
    https://sogo3.gandi.net/SOGo/dav/camille@nylnook.art/Calendar/personal/20171011T185913Z-1219-100-1-1_nylnook-home-20171011T185913Z.ics
    
    EXCEPTION:
    java.lang.UnsupportedOperationException: Cannot set timezone for UTC properties
    	at net.fortuna.ical4j.model.property.UtcProperty.setTimeZone(UtcProperty.java:95)
    	at net.fortuna.ical4j.data.CalendarBuilder.updateTimeZone(CalendarBuilder.java:353)
    	at net.fortuna.ical4j.data.CalendarBuilder.access$300(CalendarBuilder.java:68)
    	at net.fortuna.ical4j.data.CalendarBuilder$ContentHandlerImpl.parameter(CalendarBuilder.java:278)
    	at net.fortuna.ical4j.data.CalendarParserImpl$ParameterParser.parse(CalendarParserImpl.java:367)
    	at net.fortuna.ical4j.data.CalendarParserImpl$ParameterParser.access$1800(CalendarParserImpl.java:322)
    	at net.fortuna.ical4j.data.CalendarParserImpl$ParameterListParser.parse(CalendarParserImpl.java:310)
    	at net.fortuna.ical4j.data.CalendarParserImpl$PropertyParser.parse(CalendarParserImpl.java:247)
    	at net.fortuna.ical4j.data.CalendarParserImpl$PropertyParser.access$1100(CalendarParserImpl.java:229)
    	at net.fortuna.ical4j.data.CalendarParserImpl$PropertyListParser.parse(CalendarParserImpl.java:210)
    	at net.fortuna.ical4j.data.CalendarParserImpl$ComponentParser.parse(CalendarParserImpl.java:422)
    	at net.fortuna.ical4j.data.CalendarParserImpl$ComponentParser.access$900(CalendarParserImpl.java:406)
    	at net.fortuna.ical4j.data.CalendarParserImpl$PropertyListParser.parse(CalendarParserImpl.java:208)
    	at net.fortuna.ical4j.data.CalendarParserImpl.parseCalendar(CalendarParserImpl.java:115)
    	at net.fortuna.ical4j.data.CalendarParserImpl.parseCalendarList(CalendarParserImpl.java:180)
    	at net.fortuna.ical4j.data.CalendarParserImpl.parse(CalendarParserImpl.java:149)
    	at net.fortuna.ical4j.data.CalendarBuilder.build(CalendarBuilder.java:198)
    	at net.fortuna.ical4j.data.CalendarBuilder.build(CalendarBuilder.java:178)
    	at at.bitfire.ical4android.Task$Companion.fromReader(Task.kt:66)
    	at at.bitfire.davdroid.syncadapter.TasksSyncManager.processVTodo(TasksSyncManager.kt:136)
    	at at.bitfire.davdroid.syncadapter.TasksSyncManager.access$processVTodo(TasksSyncManager.kt:44)
    	at at.bitfire.davdroid.syncadapter.TasksSyncManager$downloadRemote$1$1.invoke(TasksSyncManager.kt:106)
    	at at.bitfire.davdroid.syncadapter.TasksSyncManager$downloadRemote$1$1.invoke(TasksSyncManager.kt:44)
    	at at.bitfire.dav4android.DavResource.get(DavResource.kt:132)
    	at at.bitfire.davdroid.syncadapter.TasksSyncManager$downloadRemote$1.invoke(TasksSyncManager.kt:100)
    	at at.bitfire.davdroid.syncadapter.TasksSyncManager$downloadRemote$1.invoke(TasksSyncManager.kt:44)
    	at at.bitfire.davdroid.syncadapter.SyncManager.useRemote(SyncManager.kt:774)
    	at at.bitfire.davdroid.syncadapter.TasksSyncManager.downloadRemote(TasksSyncManager.kt:99)
    	at at.bitfire.davdroid.syncadapter.SyncManager$syncRemote$1$1.run(SyncManager.kt:438)
    	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
    	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
    	at java.lang.Thread.run(Thread.java:761)
    
    SOFTWARE INFORMATION
    Package: at.bitfire.davdroid
    Version: 2.0.4-ose (245) from 10 sept. 2018
    Installed from: org.fdroid.fdroid.privileged
    JB Workaround installed: no
    
    CONNECTIVITY (at the moment)
    Active connection: WiFi, CONNECTED
    
    CONFIGURATION
    Power saving disabled: yes
    android.permission.READ_CONTACTS permission: granted
    android.permission.WRITE_CONTACTS permission: granted
    android.permission.READ_CALENDAR permission: granted
    android.permission.WRITE_CALENDAR permission: granted
    org.dmfs.permission.READ_TASKS permission: granted
    org.dmfs.permission.WRITE_TASKS permission: granted
    System-wide synchronization: automatically
    Account: camille@nylnook.art
      Address book sync. interval: 240 min
      Calendar     sync. interval: 240 min
      OpenTasks    sync. interval: 240 min
      WiFi only: false
      [CardDAV] Contact group method: GROUP_VCARDS
      [CalDAV] Time range (past days): 90
               Manage calendar colors: true
    Account: nous2@nylnook.art
      Address book sync. interval: 240 min
      Calendar     sync. interval: 240 min
      OpenTasks    sync. interval: 240 min
      WiFi only: false
      [CardDAV] Contact group method: GROUP_VCARDS
      [CalDAV] Time range (past days): 90
               Manage calendar colors: true
    Address book account: Carnet d'adresses personnel (camille@nylnook.art EA)
      Main account: Account {name=camille@nylnook.art, type=bitfire.at.davdroid}
      URL: https://sogo3.gandi.net/SOGo/dav/camille@nylnook.art/Contacts/personal/
      Sync automatically: true
    Address book account: Carnet d'adresses personnel (nous2@nylnook.art SA)
      Main account: Account {name=nous2@nylnook.art, type=bitfire.at.davdroid}
      URL: https://sogo3.gandi.net/SOGo/dav/nous2@nylnook.art/Contacts/personal/
      Sync automatically: true
    
    SQLITE DUMP
    android_metadata
    	|  locale |
    	|  fr_FR |
    ----------
    services
    	|  _id | accountName | service | principal |
    	|  1 | camille@nylnook.art | carddav | https://sogo3.gandi.net/SOGo/dav/camille@nylnook.art |
    	|  2 | camille@nylnook.art | caldav | https://sogo3.gandi.net/SOGo/dav/camille@nylnook.art |
    	|  3 | nous2@nylnook.art | carddav | https://sogo3.gandi.net/SOGo/dav/nous2@nylnook.art |
    	|  4 | nous2@nylnook.art | caldav | https://sogo3.gandi.net/SOGo/dav/nous2@nylnook.art |
    ----------
    sqlite_sequence
    	|  name | seq |
    	|  services | 4 |
    	|  collections | 8 |
    	|  homesets | 4 |
    ----------
    homesets
    	|  _id | serviceID | url |
    	|  1 | 1 | https://sogo3.gandi.net/SOGo/dav/camille@nylnook.art/Contacts/ |
    	|  2 | 2 | https://sogo3.gandi.net/SOGo/dav/camille@nylnook.art/Calendar/ |
    	|  3 | 3 | https://sogo3.gandi.net/SOGo/dav/nous2@nylnook.art/Contacts/ |
    	|  4 | 4 | https://sogo3.gandi.net/SOGo/dav/nous2@nylnook.art/Calendar/ |
    ----------
    collections
    	|  _id | serviceID | type | url | privWriteContent | privUnbind | forceReadOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | source | sync |
    	|  2 | 1 | ADDRESS_BOOK | https://sogo3.gandi.net/SOGo/dav/camille@nylnook.art/Contacts/personal/ | 1 | 1 | 0 | Carnet d'adresses personnel | <null> | <null> | <null> | 0 | 0 | <null> | 1 |
    	|  3 | 1 | ADDRESS_BOOK | https://sogo3.gandi.net/SOGo/dav/camille@nylnook.art/Contacts/directory/ | 1 | 1 | 0 | directory | <null> | <null> | <null> | 0 | 0 | <null> | 0 |
    	|  4 | 2 | CALENDAR | https://sogo3.gandi.net/SOGo/dav/camille@nylnook.art/Calendar/personal/ | 1 | 1 | 0 | Agenda personnel | <null> | -13382656 | <null> | 1 | 1 | <null> | 1 |
    	|  6 | 3 | ADDRESS_BOOK | https://sogo3.gandi.net/SOGo/dav/nous2@nylnook.art/Contacts/personal/ | 1 | 1 | 0 | Carnet d'adresses personnel | <null> | <null> | <null> | 0 | 0 | <null> | 1 |
    	|  7 | 3 | ADDRESS_BOOK | https://sogo3.gandi.net/SOGo/dav/nous2@nylnook.art/Contacts/directory/ | 1 | 1 | 0 | directory | <null> | <null> | <null> | 0 | 0 | <null> | 0 |
    	|  8 | 4 | CALENDAR | https://sogo3.gandi.net/SOGo/dav/nous2@nylnook.art/Calendar/personal/ | 1 | 1 | 0 | Nous 2 | <null> | -256 | <null> | 1 | 1 | <null> | 1 |
    ----------
    
    SYSTEM INFORMATION
    Android version: 7.1.2 (fp2_sibon-userdebug 7.1.2 18.10.0 sibon-280f64b0)
    Device: Fairphone FP2 (FP2)
    
    --- END DEBUG INFO ---
    

    Thanks a lot in advance !



  • I also use Evolution on my linux desktop...

    I just understood that copying the remote resource url give an ics file containing the task name... So I try to delete it

    But I get no success, I tried to deleted one task that have been renamed, and the other one doesn't exist on the server :
    If I use the url (https://sogo3.gandi.net/SOGo/dav/nous2@nylnook.art/Calendar/personal/9956db0d-6b5c-4f6a-9afd-7ef2366caabe.ics) I got a server answer :
    object not found: nous2@nylnook.art => Calendar => personal => 9956db0d-6b5c-4f6a-9afd-7ef2366caabe.ics

    I have no access to the database, so what to do ?