Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to delete meeting setup via CalDAV #6452

Open
cyberlink1 opened this issue Oct 30, 2024 · 5 comments
Open

unable to delete meeting setup via CalDAV #6452

cyberlink1 opened this issue Oct 30, 2024 · 5 comments
Labels
0. to triage Pending approval or rejection bug

Comments

@cyberlink1
Copy link

cyberlink1 commented Oct 30, 2024

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

  • activity: 3.0.0
  • app_api: 4.0.0
  • bruteforcesettings: 3.0.0
  • calendar: 5.0.1
  • circles: 30.0.0-dev
  • cloud_federation_api: 1.13.0
  • comments: 1.20.1
  • contacts: 6.1.0
  • contactsinteraction: 1.11.0
  • dashboard: 7.10.0
  • dav: 1.31.1
  • federatedfilesharing: 1.20.0
  • federation: 1.20.0
  • files: 2.2.0
  • files_downloadlimit: 3.0.0
  • files_pdfviewer: 3.0.0
  • files_reminders: 1.3.0
  • files_sharing: 1.22.0
  • files_trashbin: 1.20.1
  • files_versions: 1.23.0
  • firstrunwizard: 3.0.0
  • logreader: 3.0.0
  • lookup_server_connector: 1.18.0
  • nextcloud_announcements: 2.0.0
  • notes: 4.11.0
  • notifications: 3.0.0
  • oauth2: 1.18.1
  • password_policy: 2.0.0
  • photos: 3.0.2
  • privacy: 2.0.0
  • provisioning_api: 1.20.0
  • recommendations: 3.0.0
  • related_resources: 1.5.0
  • richdocuments: 8.5.2
  • serverinfo: 2.0.0
  • settings: 1.13.0
  • sharebymail: 1.20.0
  • spreed: 20.0.1
  • support: 2.0.0
  • survey_client: 2.0.0
  • systemtags: 1.20.0
  • text: 4.1.0
  • theming: 2.5.0
  • twofactor_backupcodes: 1.19.0
  • updatenotification: 1.20.0
  • user_ldap: 1.21.0
  • user_status: 1.10.0
  • viewer: 3.0.0
  • weather_status: 1.10.0
  • webhook_listeners: 1.1.0-dev
  • workflowengine: 2.12.0

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",
"trusted_domains": [
"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.

@cyberlink1 cyberlink1 added 0. to triage Pending approval or rejection bug labels Oct 30, 2024
@tcitworld
Copy link
Member

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
Copy link
Author

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
Copy link
Member

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
Copy link
Author

cyberlink1 commented Oct 30, 2024

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. to triage Pending approval or rejection bug
Projects
None yet
Development

No branches or pull requests

2 participants