Unshare from me: an error occurred, unable to delete the calendar

NC 18.0.3

One of the users is sharing his calendar, I just want to unshare it from me.

So I choose “unshare from me” in the options shown for this calendar, and after a while I get this error message:

An error occurred, unable to delete the calendar.:heavy_multiplication_x:

And then, the calendar remains in the list of calendars (which I would like not to be).

Nothing in the log file.

Which one ?

The log file shown by the “Logging” section in Administration.

Open the developer browser console (F12) and check for messages when you perform the action.

Hi, here’s what FF Console says:

10:14:37,430 Error: “”
r calendar.js:2
t attachError.js:36
t calendar.js:2
t calendar.js:2
onreadystatechange request.js:353
CalendarListItem.vue:336
t CalendarListItem.vue:336
c runtime.js:45
_invoke runtime.js:271
t runtime.js:97
BA calendar.js:2
s calendar.js:2

And here’s what Brave Console says for the same action:

request.js:337 DELETE https://cloud.mydomain.fr/remote.php/dav/calendars/myUser/otherUser_shared_by_yetAnotherUser/ 403 (Forbidden)
(anonymous) @ request.js:337
c @ runtime.js:45
(anonymous) @ runtime.js:271
forEach.e. @ runtime.js:97
le @ calendar.js?v=809168bc-54:2
a @ calendar.js?v=809168bc-54:2
(anonymous) @ calendar.js?v=809168bc-54:2
(anonymous) @ calendar.js?v=809168bc-54:2
(anonymous) @ calendar.js?v=809168bc-54:2
(anonymous) @ request.js:134
c @ runtime.js:45
(anonymous) @ runtime.js:271
forEach.e. @ runtime.js:97
le @ calendar.js?v=809168bc-54:2
a @ calendar.js?v=809168bc-54:2
(anonymous) @ calendar.js?v=809168bc-54:2
(anonymous) @ calendar.js?v=809168bc-54:2
(anonymous) @ calendar.js?v=809168bc-54:2
(anonymous) @ davCollection.js:211
c @ runtime.js:45
(anonymous) @ runtime.js:271
forEach.e. @ runtime.js:97
Ne @ calendar.js?v=809168bc-54:2
a @ calendar.js?v=809168bc-54:2
(anonymous) @ calendar.js?v=809168bc-54:2
(anonymous) @ calendar.js?v=809168bc-54:2
(anonymous) @ davCollection.js:33
(anonymous) @ calendars.js:520
c @ runtime.js:45
(anonymous) @ runtime.js:271
forEach.e. @ runtime.js:97
Um @ calendar.js?v=809168bc-54:2
a @ calendar.js?v=809168bc-54:2
(anonymous) @ calendar.js?v=809168bc-54:2
(anonymous) @ calendar.js?v=809168bc-54:2
deleteCalendar @ calendars.js:519
(anonymous) @ vuex.esm.js:747
u.dispatch @ vuex.esm.js:438
dispatch @ vuex.esm.js:332
(anonymous) @ CalendarListItem.vue:333
c @ runtime.js:45
(anonymous) @ runtime.js:271
forEach.e. @ runtime.js:97
BA @ calendar.js?v=809168bc-54:2
a @ calendar.js?v=809168bc-54:2
(anonymous) @ calendar.js?v=809168bc-54:2
(anonymous) @ calendar.js?v=809168bc-54:2
setTimeout (async)
deleteCalendar @ CalendarListItem.vue:331
click @ CalendarListItem.vue?9605:250
Qe @ vue.runtime.esm.js:1854
n @ vue.runtime.esm.js:2179
Qe @ vue.runtime.esm.js:1854
e.$emit @ vue.runtime.esm.js:3888
onClick @ ActionButton.js:22
Qe @ vue.runtime.esm.js:1854
n @ vue.runtime.esm.js:2179
o._wrapper @ vue.runtime.esm.js:6917
Show 17 more frames
CalendarListItem.vue:336 Error
at XMLHttpRequest.n.value.regeneratorRuntime.mark.regeneratorRuntime.wrap.e.abrupt.s.onreadystatechange (request.js:353)
(anonymous) @ CalendarListItem.vue:336
c @ runtime.js:45
(anonymous) @ runtime.js:271
forEach.e. @ runtime.js:97
BA @ calendar.js?v=809168bc-54:2
s @ calendar.js?v=809168bc-54:2
Promise.then (async)
BA @ calendar.js?v=809168bc-54:2
a @ calendar.js?v=809168bc-54:2
(anonymous) @ calendar.js?v=809168bc-54:2
(anonymous) @ calendar.js?v=809168bc-54:2
setTimeout (async)
deleteCalendar @ CalendarListItem.vue:331
click @ CalendarListItem.vue?9605:250
Qe @ vue.runtime.esm.js:1854
n @ vue.runtime.esm.js:2179
Qe @ vue.runtime.esm.js:1854
e.$emit @ vue.runtime.esm.js:3888
onClick @ ActionButton.js:22
Qe @ vue.runtime.esm.js:1854
n @ vue.runtime.esm.js:2179
o._wrapper @ vue.runtime.esm.js:6917

@manu.p Is it a group-shared calendar?
In that case there is already a GitHub ticket for it: https://github.com/nextcloud/server/issues/1653

OK, thanks @georgehrke, yes it’s a group-shared calendar…