nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.52k stars 4.08k forks source link

Calendar not showing events #25437

Closed aramirezverbio closed 3 years ago

aramirezverbio commented 3 years ago
### Steps to reproduce 1. Subscribe to this calendar: https://aramirez.net/3ewmFLHW/test/ics-good 2. Subscribe to this other calendar: https://aramirez.net/3ewmFLHW/test/ics-bad ### Expected behaviour Both calendars should work fine. They work fine in other clients like Google Calendar and the Android Calendar app. ### Actual behaviour Both subscriptions are successful (no errors are shown), but one of the calendars does not display any events. Both calendars contain the exact same data (though some response headers differ, perhaps that's the issue). ### Calendar app **Calendar app version:** 2.1.3 **CalDAV-clients used:** Nextcloud Calendar, Google Calendar, Android Calendar app. ### Client configuration **Browser:** Brave Version 1.19.88 Chromium: 88.0.4324.96 **Operating system:** Arch Linux ### Server configuration **Operating system**: Arch Linux (armv7l) **Web server:** Nginx 1.18.0 **Database:** PostgreSQL 13.1 **PHP version:** 7.4.14 **Nextcloud Version:** 20.0.6 **Updated from an older installed version or fresh install:** Updated **List of activated apps:** * Accessibility * Activity * Brute-force settings * Calendar * Collaborative apps * Comments * Contacts * Contacts interaction * Dashboard * Deck * Deleted files * External sites * External user authentication * Extract * Federation * File sharing * First run wizard * Log reader * Mail * Markdown editor * Monitoring * News * Nextcloud announcements * Notes * Notifications * PDF viewer * Photos * Privacy * Recommendations * Right click * Share by mail * Theming * Update notifications * User status * Versions * Video player * Weather status **Nextcloud configuration:** ``` '\\OC\\Memcache\\APCu', 'asset-pipeline.enabled' => true, 'datadirectory' => '/usr/share/webapps/nextcloud/data', 'dbtype' => 'pgsql', 'version' => '20.0.6.1', 'dbtableprefix' => 'oc_', 'logtimezone' => 'UTC', 'installed' => true, 'defaultapp' => 'news', 'default_language' => 'es', 'enable_avatars' => true, 'theme' => '', 'loglevel' => 0, 'updater.release.channel' => 'stable', 'app_install_overwrite' => array ( 0 => 'calendar', 1 => 'extract', 2 => 'external', ), 'maintenance' => false, ); ``` ### Logs #### Web server error log (e.g. /var/log/apache) There is nothing relevant in `/var/log/nginx/error.log`. #### Log file (data/nextcloud.log) No lines were written to this log file during my testing. #### Browser log No lines were written to the javascript console during my testing. Response headers for `ics-good`: https://aramirez.net/3ewmFLHW/test/ics-good2.txt Response headers for `ics-bad`: https://aramirez.net/3ewmFLHW/test/ics-bad2.txt
tcitworld commented 3 years ago

Do you mean importing or subscription?

Anyway, both files aren't valid ICalendar files (you can test them on https://icalendar.org/validator.html), so that would be a first thing to check. There are missing the required UID and DTSTAMP properties¹.

¹ I actually sent a PR for Elixir's ICalendar library back in the day https://github.com/lpil/icalendar/pull/30

aramirezverbio commented 3 years ago

I mean subscription. I just tried importing and it works fine.

I'm not familiar with the ical spec. I didn't create the calendars. But in any case it's weird that one of the URLs works and the other does not when they both have the same content (and importing the same calendar works too). I don't think the problem is in the actual calendar but in the response headers.

tcitworld commented 3 years ago

Can you share some anonymized response headers in that case?

aramirezverbio commented 3 years ago

They are in the first message, at the bottom.

tcitworld commented 3 years ago

Possibly related to the duplicated headers.

aramirezverbio commented 3 years ago

Sorry, there was a copy-paste error. Here are the right headers:

There are still some duplicates, though.

szaimen commented 3 years ago

I suppose this is still valid on NC21.0.2?

tcitworld commented 3 years ago

The log files are gone.

aramirezverbio commented 3 years ago

I tried with NextCloud 21 a while ago and the issue persisted, but I'm afraid I've moved on and I don't use those calendars anymore. I can't run any more tests on this.

tcitworld commented 3 years ago

No worries, I'll try to generate some with lpil/icalendar to see if reproductible.

ghost commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity and seems to be missing some essential information. It will be closed if no further activity occurs. Thank you for your contributions.