View Issue Details

IDProjectCategoryView StatusLast Update
0005504SOGoApple Calendar (Mac OS X)public2022-06-08 13:17
Reportermksogoadmin Assigned To 
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionno change required 
PlatformMacOSmacOS MontereyOS Version12.3
Product Version5.5.1 
Summary0005504: Shared link to calendar cannot be subscribed
Description

Sharing a calendar (public or with authenticated) via "Links to this calender" using CalDAV-URL, ICS or XML causes an error when adding it to iCal as a calendar subscription.

Aim is to share the free/busy times with other external non-Sogo users. This is not working.
Trying to subscribe to that calendar with other software like Nextcloud Calendar via CalDAV-URL, ICS or XML also causes an error.

Steps To Reproduce
TagsNo tags attached.

Activities

mksogoadmin

mksogoadmin

2022-04-26 09:53

reporter   ~0015991

Last edited: 2022-04-26 11:39

This is the error in Nextcloud:

https://mail.....net/SOGo/dav/public/...@.../Calendar/personal/` resulted in a `501 Request Failed` response: <?xml version="1.0" encoding="utf-8"?> <D:error xmlns:D="DAV">no WebDAV GET support?!</D:error>
mksogoadmin

mksogoadmin

2022-04-26 09:53

reporter   ~0015992

BTW this is a SoGo instance running in the Mailcow package

francis

francis

2022-04-26 11:53

administrator   ~0015993

Have you defined domain-based users sources?

mksogoadmin

mksogoadmin

2022-04-26 12:14

reporter   ~0015994

Sogo authenticates via Mailcow users databases - not sure what you mean with domain-based users sources. I am using the standard mailcow configuration.

francis

francis

2022-04-26 12:19

administrator   ~0015995

Last edited: 2022-04-26 12:26

Check if you have a domains dictionary defined in /etc/sogo/sogo.conf.

mksogoadmin

mksogoadmin

2022-04-26 12:34

reporter   ~0015996

The only entries (which are not active) related to "domain" are these here in sogo.conf. Do these have to be configured manually to match my (multiple) Mailcow domains?

// Multi-domain setup
// Domains are isolated, you can define visibility options here.
// Example:

// SOGoDomainsVisibility = (
//  (domain1.tld, domain5.tld),
//  (domain3.tld, domain2.tld)
// );
francis

francis

2022-04-26 12:57

administrator   ~0015997

You should perform a REPORT instead of a GET on a collection.

You must use the appropriate URL depending on your client. Use the .ics link if you want to subscribe to the public calendar.

mksogoadmin

mksogoadmin

2022-04-26 13:23

reporter   ~0015998

I am simply adding this link "https://mail.mydomain.net/SOGo/dav/public/user@mydomain.net/Calendar/personal.ics to my Apple iCal client - it will throw an error. If I put it in a browser window and download, no problem - the ics can be imported correctly.

If I add the link above to Nextcloud Calendar, it will throw the above error. Can Sogo not support GET command instead of REPORT to provide the ics file? Not sure, but this way the interoperability is rather limited, if ics files don't work in standard applications.

So far it is the first time I encounter an issue that iCal could not work with an ics file, so seems to be incompatibility on SoGo's side to me.

francis

francis

2022-04-26 16:43

administrator   ~0015999

The .ics file is .. a file, not a collection. From the Nextcloud error log above, you tried to subscribe to a collection instead of the ics file.

I can't replicate the issue with Calendar.app (File -> New Calendar Subscription...). Did you give public access to your calendar?

mksogoadmin

mksogoadmin

2022-04-27 04:51

reporter   ~0016000

Yes, otherwise the download of the ics file would not work I think. Checked again, and indeed the error above was due to choosing the wrong link. However using the ics link in Nextcloud Calendar leads to this error. It is a 2MB sized file if I download it. The Calendar.app error does not tell any details when importing this link, it fails with a message after quite some time. Could it be Sogo is just too slow to deliver data with such a big calendar to share? It is strange that also the download of the ics file in a browser has quite some delay.

GuzzleHttp\Exception\ConnectException: cURL error 28: Operation timed out after 30001 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://mail.mydomain.net/SOGo/dav/public/user@mydomain.net/Calendar/personal.ics
mksogoadmin

mksogoadmin

2022-04-27 05:06

reporter   ~0016001

@francis I can share the real link to you if you want to check the issue. Let me know where to send it to.

francis

francis

2022-04-27 11:39

administrator   ~0016003

Any error in your Web server or SOGo logs?

mksogoadmin

mksogoadmin

2022-05-30 11:35

reporter   ~0016078

I checked the logs now, but can't find anything in the SoGo log upon subscription of the calendar from Nextcloud.
I only see that there is a GuzzleHTTP client timeout in Nextcloud.... So may be an issue on Nextcloud side?

mksogoadmin

mksogoadmin

2022-06-08 07:11

reporter   ~0016094

After further investigation it seems to be an issue that only occurs if calendars are very big. Eventually ics subscription should be limited to "last year and future events"...
Anyway, this issue can be closed.

Issue History

Date Modified Username Field Change
2022-04-26 09:43 mksogoadmin New Issue
2022-04-26 09:53 mksogoadmin Note Added: 0015991
2022-04-26 09:53 mksogoadmin Note Added: 0015992
2022-04-26 11:39 francis Note Edited: 0015991
2022-04-26 11:53 francis Note Added: 0015993
2022-04-26 12:14 mksogoadmin Note Added: 0015994
2022-04-26 12:19 francis Note Added: 0015995
2022-04-26 12:26 francis Note Edited: 0015995
2022-04-26 12:26 francis Note Edited: 0015995
2022-04-26 12:34 mksogoadmin Note Added: 0015996
2022-04-26 12:57 francis Note Added: 0015997
2022-04-26 13:23 mksogoadmin Note Added: 0015998
2022-04-26 16:43 francis Note Added: 0015999
2022-04-27 04:51 mksogoadmin Note Added: 0016000
2022-04-27 05:06 mksogoadmin Note Added: 0016001
2022-04-27 11:39 francis Note Added: 0016003
2022-05-30 11:35 mksogoadmin Note Added: 0016078
2022-06-08 07:11 mksogoadmin Note Added: 0016094
2022-06-08 13:17 francis Status new => closed
2022-06-08 13:17 francis Resolution open => no change required