JodliDev / calendar

GNU Affero General Public License v3.0
16 stars 12 forks source link

calendar entries are displayed multiple times #8

Open JodliDev opened 2 years ago

JodliDev commented 2 years ago

Sometimes, the automatic update in the frontend leads to calendar entries being displayed multiple times (one copy per update). Its not done at the backend and the copies are gone as soon as another month is displayed (or the page is reloaded).

I didnt really have had the time and motiviation to go through the source to hunt for the problem since it only seems to be a visual glitch. Just putting it out there in case anyone else stumbles over it (or has more information or can solve it even :D ).

n-peugnet commented 2 years ago

This happens for instance when a CalDAV calendar is deleted from a source. All the events are displayed one more time.

chaos-prevails commented 2 years ago

Hello,

I experience this with newly created events. If I wait ~30 seconds, it shows twice, and stays there until I have completely refreshed the whole page.

this is the logfile (event starts to show twice at May 19 19:44:29 mail roundcube: <42qla02u> caldav_driver: Ctag indicates that calendar "74" needs update!

May 19 19:43:53 mail roundcube: <42qla02u> caldav_driver: Push new event to url /SOGo/dav/it5@mydomain.net/Calendar/personal//6B49ED64F6C6C7589BB5AD28199CE191-1CB5DAFE4E2ABC8E.ics
May 19 19:44:01 mail CRON[3365422]: (sogo) CMD (/usr/sbin/sogo-tool expire-sessions 30 >/dev/null 2>&1; /usr/sbin/sogo-ealarms-notify >/dev/null 2>&1)
May 19 19:44:01 mail CRON[3365423]: (root) CMD (/bin/bash /usr/local/bin/fail2ban_banned_db unban_db)
May 19 19:44:01 mail postfix/anvil[3365252]: statistics: max connection rate 1/60s for (smtpd:128.9.29.254) at May 19 19:40:39
May 19 19:44:01 mail postfix/anvil[3365252]: statistics: max connection count 1 for (smtpd:128.9.29.254) at May 19 19:40:39
May 19 19:44:01 mail postfix/anvil[3365252]: statistics: max cache size 1 at May 19 19:40:39
May 19 19:44:29 mail roundcube: <42qla02u> caldav_driver: Ctag indicates that calendar "74" needs update!
May 19 19:44:29 mail roundcube: <42qla02u> caldav_driver: Calendar "74" needs update.
May 19 19:44:29 mail roundcube: <42qla02u> caldav_driver: Syncing calendar id "74".
May 19 19:44:29 mail roundcube: <42qla02u> caldav_driver: Found new event /SOGo/dav/it5@mydomain.net/Calendar/personal/
May 19 19:44:29 mail roundcube: <42qla02u> caldav_driver: Found new event /SOGo/dav/it5@mydomain.net/Calendar/personal/6B49ED64F6C6C7589BB5AD28199CE191-1CB5DAFE4E2ABC8E.ics
May 19 19:44:29 mail roundcube: PHP Warning:  array_merge(): Expected parameter 1 to be an array, null given in /opt/www/roundcubemail/plugins/calendar/drivers/caldav/caldav_driver.php on line 2253
May 19 19:44:29 mail roundcube: <42qla02u> caldav_driver: Could not perform event creation: Array
May 19 19:44:29 mail roundcube: (
May 19 19:44:29 mail roundcube:     [url] => /SOGo/dav/it5@mydomain.net/Calendar/personal/
May 19 19:44:29 mail roundcube:     [etag] => None
May 19 19:44:29 mail roundcube: )
May 19 19:44:29 mail roundcube: 
May 19 19:44:29 mail roundcube: <42qla02u> caldav_driver: Created event "314".
May 19 19:44:29 mail roundcube: <42qla02u> caldav_driver: Created 1 new events, updated 0 event.
May 19 19:44:29 mail roundcube: <42qla02u> caldav_driver: Remove event "313".
May 19 19:44:29 mail roundcube: <42qla02u> caldav_driver: Successfully synced calendar id "74".
May 19 19:44:41 mail roundcube: <lgq21hk4> caldav_driver: Ctag indicates that calendar "75" needs update!
May 19 19:44:41 mail roundcube: <lgq21hk4> caldav_driver: Calendar "75" needs update.
May 19 19:44:41 mail roundcube: <lgq21hk4> caldav_driver: Syncing calendar id "75".
May 19 19:44:41 mail roundcube: <lgq21hk4> caldav_driver: Found new event /SOGo/dav/it8@mydomain.net/Calendar/personal/
May 19 19:44:41 mail roundcube: PHP Warning:  array_merge(): Expected parameter 1 to be an array, null given in /opt/www/roundcubemail/plugins/calendar/drivers/caldav/caldav_driver.php on line 2253
May 19 19:44:41 mail roundcube: <lgq21hk4> caldav_driver: Could not perform event creation: Array
May 19 19:44:41 mail roundcube: (
May 19 19:44:41 mail roundcube:     [url] => /SOGo/dav/it8@mydomain.net/Calendar/personal/
May 19 19:44:41 mail roundcube:     [etag] => None
May 19 19:44:41 mail roundcube: )
May 19 19:44:41 mail roundcube: 
May 19 19:44:41 mail roundcube: <lgq21hk4> caldav_driver: Created 0 new events, updated 0 event.
May 19 19:44:41 mail roundcube: <lgq21hk4> caldav_driver: Successfully synced calendar id "75".
May 19 19:45:01 mail CRON[3365450]: (sogo) CMD (/usr/sbin/sogo-tool expire-sessions 30 >/dev/null 2>&1; /usr/sbin/sogo-ealarms-notify >/dev/null 2>&1)
May 19 19:45:01 mail CRON[3365451]: (root) CMD (/bin/bash /usr/local/bin/fail2ban_banned_db unban_db)
May 19 19:45:29 mail roundcube: <42qla02u> caldav_driver: Ctag indicates that calendar "74" needs update!
May 19 19:45:29 mail roundcube: <42qla02u> caldav_driver: Calendar "74" needs update.
May 19 19:45:29 mail roundcube: <42qla02u> caldav_driver: Syncing calendar id "74".
May 19 19:45:29 mail roundcube: <42qla02u> caldav_driver: Found new event /SOGo/dav/it5@mydomain.net/Calendar/personal/
May 19 19:45:29 mail roundcube: PHP Warning:  array_merge(): Expected parameter 1 to be an array, null given in /opt/www/roundcubemail/plugins/calendar/drivers/caldav/caldav_driver.php on line 2253
May 19 19:45:29 mail roundcube: <42qla02u> caldav_driver: Could not perform event creation: Array
May 19 19:45:29 mail roundcube: (
May 19 19:45:29 mail roundcube:     [url] => /SOGo/dav/it5@mydomain.net/Calendar/personal/
May 19 19:45:29 mail roundcube:     [etag] => None
May 19 19:45:29 mail roundcube: )
May 19 19:45:29 mail roundcube: 
May 19 19:45:29 mail roundcube: <42qla02u> caldav_driver: Created 0 new events, updated 0 event.
May 19 19:45:29 mail roundcube: <42qla02u> caldav_driver: Successfully synced calendar id "74".
May 19 19:45:35 mail roundcube: <42qla02u> caldav_driver: Sync period active: Assuming calendar "74" to be in sync.
May 19 19:45:41 mail roundcube: <lgq21hk4> caldav_driver: Ctag indicates that calendar "75" needs update!
May 19 19:45:41 mail roundcube: <lgq21hk4> caldav_driver: Calendar "75" needs update.
May 19 19:45:41 mail roundcube: <lgq21hk4> caldav_driver: Syncing calendar id "75".
May 19 19:45:41 mail roundcube: <lgq21hk4> caldav_driver: Found new event /SOGo/dav/it8@mydomain.net/Calendar/personal/
May 19 19:45:41 mail roundcube: PHP Warning:  array_merge(): Expected parameter 1 to be an array, null given in /opt/www/roundcubemail/plugins/calendar/drivers/caldav/caldav_driver.php on line 2253
May 19 19:45:41 mail roundcube: <lgq21hk4> caldav_driver: Could not perform event creation: Array
May 19 19:45:41 mail roundcube: (
May 19 19:45:41 mail roundcube:     [url] => /SOGo/dav/it8@mydomain.net/Calendar/personal/
May 19 19:45:41 mail roundcube:     [etag] => None
May 19 19:45:41 mail roundcube: )
May 19 19:45:41 mail roundcube: 
May 19 19:45:41 mail roundcube: <lgq21hk4> caldav_driver: Created 0 new events, updated 0 event.
May 19 19:45:41 mail roundcube: <lgq21hk4> caldav_driver: Successfully synced calendar id "75".

this is BTW not a new bug, I already see this with faster-it/texasrulez implementation and RC1.3