nextcloud / calendar

πŸ“† Calendar app for Nextcloud
https://apps.nextcloud.com/apps/calendar
GNU Affero General Public License v3.0
985 stars 239 forks source link

unable to delete meeting setup via CalDAV #6452

Open cyberlink1 opened 3 weeks ago

cyberlink1 commented 3 weeks ago

Steps to reproduce

Im developing this caldav integration for/on N8N so I could be doing something wrong.

  1. do a put request to the host https://nextcloud.<mydomain>.com/remote.php/dav/calendars/d78da3f8-1d90-11ef-a680-bc2411621666/personal/event.ics

  2. Send the following as a calendar event (text/calendar) (basic authorization) BEGIN:VCALENDAR VERSION:2.0 PRODID:-//n8n Integration//CalDAV Event//EN BEGIN:VEVENT UID:1730286920002 DTSTAMP:20241030T111520Z DTSTART:20241102T113000Z DTEND:20241102T120000Z SUMMARY:Discuss the Bug in Nextcloud LOCATION:Home DESCRIPTION:Discuss the Bug in Nextcloud END:VEVENT END:VCALENDAR

  3. go to Nextcloud and try to delete the event.

Expected behavior

I would expect it to delete the event when I click delete.

Actual behaviour

the spinning icon shows and never goes away. Event is not removed from calendar.

Calendar app version

5.0.1

CalDAV-clients used

Custom Development my me.

Browser

Chrome 126.0.6478.126

Client operating system

Fedora Core

Server operating system

Using official Docker image

Web server

None

Database engine version

None

PHP engine version

None

Nextcloud version

30.0.1.2

Updated from an older installed version or fresh install

Updated from an older version

List of activated apps

Nextcloud configuration

{ "system": { "htaccess.RewriteBase": "\/", "memcache.local": "\OC\Memcache\APCu", "apps_paths": [ { "path": "\/var\/www\/html\/apps", "url": "\/apps", "writable": false }, { "path": "\/var\/www\/html\/custom_apps", "url": "\/custom_apps", "writable": true } ], "upgrade.disable-web": true, "instanceid": "REMOVED SENSITIVE VALUE", "passwordsalt": "REMOVED SENSITIVE VALUE", "secret": "REMOVED SENSITIVE VALUE", "trusteddomains": [ "192.168.10.7:10070", "nextcloud.xganon.com" ], "datadirectory": "REMOVED SENSITIVE VALUE", "dbtype": "mysql", "version": "30.0.1.2", "overwrite.cli.url": "https:\/\/nextcloud.<mydomain>.com", "overwriteprotocol": "https", "dbname": "REMOVED SENSITIVE VALUE", "dbhost": "REMOVED SENSITIVE VALUE", "dbport": "", "dbtableprefix": "oc", "mysql.utf8mb4": true, "dbuser": "REMOVED SENSITIVE VALUE", "dbpassword": "REMOVED SENSITIVE VALUE", "installed": true, "mail_from_address": "REMOVED SENSITIVE VALUE", "mail_smtpmode": "smtp", "mail_sendmailmode": "smtp", "mail_domain": "REMOVED SENSITIVE VALUE", "mail_smtphost": "REMOVED SENSITIVE VALUE", "mail_smtpport": "25", "ldapProviderFactory": "OCA\User_LDAP\LDAPProviderFactory", "maintenance": false, "loglevel": 2 } }

Web server error log

No response

Log file

No response

Browser log

No response

Additional info

Im using N8N and Ollama to create a personal assistant that can manage my calendar. There is no CalDav node for N8N so Im doing it with a Function node to format the CalDAV message then passing it off to an HTTP-API node to handle the calls to the CalDAV address. This is a personal system in Dev so I can do adjustments and test if needed.

I have also noticed that any event sent via CalDAV seems to update the start and end time of the one event instead of creating a new event. Even though they have different UID, SUMMERY, and DESCRIPTION. Im noting it here because it could be related, if not Ill open another bug for that one.

tcitworld commented 3 weeks ago

the spinning icon shows and never goes away. Event is not removed from calendar.

Please provide webserver logs, nextcloud logs and browser logs to see what the request does.

cyberlink1 commented 3 weeks ago

the spinning icon shows and never goes away. Event is not removed from calendar.

Please provide webserver logs, nextcloud logs and browser logs to see what the request does.

The nextcloud.log does not log anything during the event.

The Web server log, logs

10.0.0.2 - cl [30/Oct/2024:12:55:39 +0000] "PROPFIND /remote.php/dav/files/d78da3f8-1d90-11ef-a680-bc2411621666/Taxes HTTP/1.1" 207 979 "-" "Mozilla/5.0 (Linux) mirall/3.4.2 (build 9043) (Nextcloud, fedora-6.9.6-200.fc40.x86_64 ClientArchitecture: x86_64 OsArchitecture: x86_64)" 10.0.0.3 - cl [30/Oct/2024:12:55:39 +0000] "PROPFIND /remote.php/dav/files/d78da3f8-1d90-11ef-a680-bc2411621666/InstantUpload HTTP/1.1" 207 984 "-" "Mozilla/5.0 (Linux) mirall/3.4.2 (build 9043) (Nextcloud, fedora-6.9.6-200.fc40.x86_64 ClientArchitecture: x86_64 OsArchitecture: x86_64)" 10.0.0.2 - cl [30/Oct/2024:12:55:39 +0000] "PROPFIND /remote.php/dav/files/d78da3f8-1d90-11ef-a680-bc2411621666/Blog HTTP/1.1" 207 978 "-" "Mozilla/5.0 (Linux) mirall/3.4.2 (build 9043) (Nextcloud, fedora-6.9.6-200.fc40.x86_64 ClientArchitecture: x86_64 OsArchitecture: x86_64)"

How do you pull Web Browser logs, Ive never heard of any logs from a browser.

tcitworld commented 3 weeks ago

How do you pull Web Browser logs, Ive never heard of any logs from a browser.

Open the developer tools (F12), checkout the console tab, perform the event deletion and paste the new lines that came up. You can also check the Network tab to see what's the request status.

cyberlink1 commented 3 weeks ago

How do you pull Web Browser logs, Ive never heard of any logs from a browser.

Open the developer tools (F12), checkout the console tab, perform the event deletion and paste the new lines that came up. You can also check the Network tab to see what's the request status.

Thank you for the instructions.

getDomElementForPopover <a tabindex=​"0" class=​"fc-event fc-event-start fc-event-end fc-event-future fc-timegrid-event fc-v-event fc-timegrid-event-short" data-object-id=​"L3JlbW90ZS5waHAvZGF2L2NhbGVuZGFycy9kNzhkYTNmOC0xZDkwLTExZWYtYTY4MC1iYzI0MTE2MjE2NjYvcGVyc29uYWwvZXZlbnQuaWNz" data-recurrence-id=​"1730547000" style=​"border-color:​ rgb(121, 90, 171)​;​ background-color:​ rgb(121, 90, 171)​;​">​…​</a>​ auto
calendarObjects.js:188 

       DELETE https://nextcloud.<mydomane>.com/remote.php/dav/calendars/d78da3f8-1d90-11ef-a680-bc2411621666/personal/event.ics 403 (Forbidden)
request @ index.mjs:871
delete @ index.mjs:693
delete @ index.mjs:1265
deleteCalendarObject @ calendarObjects.js:188
a @ pinia.mjs:1405
deleteCalendarObjectInstance @ calendarObjectInstance.js:1505
a @ pinia.mjs:1405
delete @ EditorMixin.js:516
deleteAndLeave @ EditorMixin.js:526
click @ EditSimple.vue:1
fn @ vue.runtime.esm.js:3033
n @ vue.runtime.esm.js:1832
fn @ vue.runtime.esm.js:3033
e.$emit @ vue.runtime.esm.js:3732
onClick @ actionText-fFcUPi2g.mjs:77
handleClick @ NcActionButton.mjs:131
fn @ vue.runtime.esm.js:3033
n @ vue.runtime.esm.js:1832
i._wrapper @ vue.runtime.esm.js:7500
Show 14 more frames
Show lessUnderstand this error
vue.runtime.esm.js:3065 Error
    at o.onreadystatechange (index.mjs:884:20)
cyberlink1 commented 3 weeks ago

I have also noticed that any event sent via CalDAV seems to update the start and end time of the one event instead of creating a new event. Even though they have different UID, SUMMERY, and DESCRIPTION. Im noting it here because it could be related, if not Ill open another bug for that one.

Ok, this is not part of it. This was caused by my method of naming the ics file.