[Framagenda] Cannot set timezone for UTC properties


#1

Bonjour,

Je rencontre un soucis depuis aujourd’hui avec framagenda que ej synchronise avec evolution et lineageos (via davdroid).

Sous evolution et framagenda, tout fonctionne bien, par contre Davdroid me fait des siennes depuis aujourd’hui depuis l’ajout d’un évenement dans mon agenda via framagenda.

Le message d’erreur sous lineageos est le suivant “Cannot set timezone for UTC properties”

Davdroid me produit également un log d’erreur que je mets ci-dessous

--- BEGIN DEBUG INFO ---
Account name: mail@mail.fr
Authority: org.dmfs.tasks

REMOTE RESOURCE:
https://framagenda.org/remote.php/dav/calendars/user/agenda/f540603ed189f6fc7b1ab8697ad8fe39f4fd142c.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:67)
        at at.bitfire.davdroid.syncadapter.TasksSyncManager.processVTodo(TasksSyncManager.kt:139)
        at at.bitfire.davdroid.syncadapter.TasksSyncManager.access$processVTodo(TasksSyncManager.kt:43)
        at at.bitfire.davdroid.syncadapter.TasksSyncManager$downloadRemote$1$1.invoke(TasksSyncManager.kt:104)
        at at.bitfire.davdroid.syncadapter.TasksSyncManager$downloadRemote$1$1.invoke(TasksSyncManager.kt:43)
        at at.bitfire.dav4android.DavResource.get(DavResource.kt:211)
        at at.bitfire.davdroid.syncadapter.TasksSyncManager$downloadRemote$1.invoke(TasksSyncManager.kt:98)
        at at.bitfire.davdroid.syncadapter.TasksSyncManager$downloadRemote$1.invoke(TasksSyncManager.kt:43)
        at at.bitfire.davdroid.syncadapter.SyncManager.useRemote(SyncManager.kt:783)
        at at.bitfire.davdroid.syncadapter.TasksSyncManager.downloadRemote(TasksSyncManager.kt:97)
        at at.bitfire.davdroid.syncadapter.SyncManager$syncRemote$1$1.run(SyncManager.kt:447)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
        at java.lang.Thread.run(Thread.java:764)

SOFTWARE INFORMATION
* at.bitfire.davdroid 2.1-ose (257) from com.google.android.packageinstaller
* org.dmfs.tasks 1.1.15 (7330) from com.google.android.packageinstaller
* com.android.providers.contacts 8.1.0 (27)
* com.android.providers.calendar 8.1.0 (27)
* com.android.contacts 1.7.21 (10721)
* com.android.calendar 8.1.0 (27)

CONNECTIVITY (at the moment)
Active connection: WiFi, CONNECTED

CONFIGURATION
Power saving disabled: no
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: mail@mail.fr
  Address book sync. interval: 240 min
  Calendar     sync. interval: 240 min
  OpenTasks    sync. interval: 240 min
  WiFi only: false
  [CardDAV] Contact group method: CATEGORIES
  [CalDAV] Time range (past days): 90
           Manage calendar colors: true
Address book account: Contacts (mail@mail.fr VQ)
  Main account: Account {name=mail@mail.fr, type=bitfire.at.davdroid}
  URL: https://framagenda.org/remote.php/dav/addressbooks/users/user/contacts/
  Sync automatically: true

SQLITE DUMP
android_metadata
        |  locale |
        |  fr_FR |
----------
services
        |  _id | accountName | service | principal |
        |  1 | mail@mail.fr | carddav | https://framagenda.org/remote.php/dav/principals/users/user/ |
        |  2 | mail@mail.fr | caldav | https://framagenda.org/remote.php/dav/principals/users/user/ |
----------
sqlite_sequence
        |  name | seq |
        |  services | 2 |
        |  homesets | 3 |
        |  collections | 5 |
----------
homesets
        |  _id | serviceID | url |
        |  1 | 2 | https://framagenda.org/remote.php/dav/calendars/user/ |
        |  3 | 1 | https://framagenda.org/remote.php/dav/addressbooks/users/user/ |
----------
collections
        |  _id | serviceID | type | url | privWriteContent | privUnbind | forceReadOnly | displayName | description | color | timezone | supportsVEVENT | supportsVTODO | source | sync |
        |  1 | 2 | CALENDAR | https://framagenda.org/remote.php/dav/calendars/user/agenda/ | 1 | 1 | 0 | Agenda | <null> | -9122585 | <null> | 1 | 1 | <null> | 1 |
        |  2 | 2 | CALENDAR | https://framagenda.org/remote.php/dav/calendars/user/contact_birthdays/ | 0 | 0 | 0 | Anniversaires des contacts | <null> | -54 | <null> | 1 | 0 | <null> | 0 |
        |  3 | 2 | WEBCAL | https://framagenda.org/remote.php/dav/calendars/user/httpswwwagendadulibreorgeventsicsregion12/ | 1 | 1 | 0 | Agenda du libre | <null> | -8593707 | <null> | 1 | 0 | https://www.agendadulibre.org/events.ics?region=12 | 0 |
        |  5 | 1 | ADDRESS_BOOK | https://framagenda.org/remote.php/dav/addressbooks/users/user/contacts/ | 1 | 1 | 0 | Contacts | <null> | <null> | <null> | 0 | 0 | <null> | 1 |
----------

SYSTEM INFORMATION
Android version: 8.1.0 (lineage_klte-userdebug 8.1.0 OPM7.181205.001 00f2e970bf)
Device: samsung SM-G900T (kltetmo)

--- END DEBUG INFO ---

#2

Bonjour,

Cela semble être un souci avec DAVdroid et Android 8 : https://forums.bitfire.at/topic/1727/nullpointerexception-attempt-to-invoke-virtual-method-void-java-util-calendar-settimezone-java-util-timezone-on-a-null-object-reference/28 (en anglais)

Réinstaller l’application semble résoudre le souci pour certains…


#3

Bonjour,

Merci pour cette information.

Je viens de procéder à la réinstallation de davdroid, plus de message d’erreur pour l’instant.

Je ferai un retour plus tard pour confirmer le bon fonctionnement.

Merci


#4

bon, après une journée d’utilisation tout a l’air ok, merci @tcit