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

Calendars can not be unshared if shared with Circle #6062

Open enoy19 opened 1 year ago

enoy19 commented 1 year ago

If you unshare a calendar, that has been shared with you via a circle, you get the error message An error occurred, unable to delete the calendar.

Console:

XHRDELETE
https://<nextcloud>/remote.php/dav/calendars/<me>/personal_shared_by_<other user>/
[HTTP/1.1 403 Forbidden 103ms]

Response:
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\Forbidden</s:exception>
  <s:message/>
</d:error>

Stacktrace:
Error: 
    D dist.js:1
    r dist.js:1
    a dist.js:1
    i dist.js:1
    a dist.js:1
    i dist.js:1
    a dist.js:1
    i dist.js:1
    onreadystatechange dist.js:1
    e dist.js:1
    e dist.js:1
    u dist.js:1
    _invoke dist.js:1
    E dist.js:1
    pe dist.js:1
    o dist.js:1
    exports dist.js:1
    exports dist.js:1
    value dist.js:1
    e dist.js:1
    u dist.js:1
    _invoke dist.js:1
    E dist.js:1
    pe dist.js:1
    o dist.js:1
    exports dist.js:1
    exports dist.js:1
    value dist.js:1
    e dist.js:1
    u dist.js:1
    _invoke dist.js:1
    E dist.js:1
    je dist.js:1
    o dist.js:1
    exports dist.js:1
    exports dist.js:1
    value dist.js:1
    n calendars.js:712
    c calendars.js:2
    _invoke calendars.js:2
    v calendars.js:2
    B0 calendars.js:2
    o calendars.js:2
    M0 calendars.js:2
    M0 calendars.js:2
    deleteCalendar calendars.js:714
    g vuex.esm.js:736
    dispatch vuex.esm.js:490
    dispatch vuex.esm.js:393
    t calendars.js:746
    c calendars.js:2
    _invoke calendars.js:2
    v calendars.js:2
    B0 calendars.js:2
    o calendars.js:2
    M0 calendars.js:2
    M0 calendars.js:2
    setTimeout handler*deleteCalendarAfterTimeout calendars.js:745
    g vuex.esm.js:736
    dispatch vuex.esm.js:490
    dispatch vuex.esm.js:393
    deleteCalendar EditCalendarModal.vue:224
    VueJS 2
    click NcButton.js:2
    VueJS 33
calendars.js:756:35
    t calendars.js:756
    c calendars.js:2
    _invoke calendars.js:2
    v calendars.js:2
    B0 calendars.js:2
    s calendars.js:2
    (Async: promise callback)
    B0 calendars.js:2
    o calendars.js:2
    M0 calendars.js:2
    M0 calendars.js:2
    (Async: setTimeout handler)
    deleteCalendarAfterTimeout calendars.js:745
    g vuex.esm.js:736
    dispatch vuex.esm.js:490
    dispatch vuex.esm.js:393
    deleteCalendar EditCalendarModal.vue:224
    VueJS 2
    click NcButton.js:2
    VueJS 33
Theiaz commented 1 month ago

Same problem for me, any update?

miaulalala commented 1 month ago

Should be fixed by https://github.com/nextcloud/server/pull/47737