Cannot add URL when pasting it in a browser triggers a download
I'm trying to add the calendar of classes from my school in my calendar, however, I cannot proceed with adding it in GNOME Calendars. It seems that it's checking for something and returning an error (when running in DEBUG from Builder):
12:18:36.0139 GcalSourceDialog: DEBUG: [source-dialog] error: Failed to get properties: HTTP error code 501 (501 Unimplemented): 501 Unimplemented
However, when CURLing the URL, the response is simply the calendar data itself, and pasting the link in a browser triggers a download of the ICS calendar.
Using curl -X OPTIONS
does return a 501 Not implemented
response though.
It seems like GNOME Calendar is not simply trying to send an HTTP GET
first to see if the response is a calendar, resorting to OPTIONS
to check the availability. I believe the best case scenario would be to tell my school infrastructure to support OPTIONS
but I think I'll be long gone when they'll finally fix it :)
I'd be happy to provide the URL privately should it be needed for testing.
Steps to reproduce:
- Open GNOME Calendar
- Add calendar from web, paste the link
- The "Add" button is greyed out
- Test the link in a browser, or through
wget
/curl
- it downloads the calendar data. - Use
curl -X OPTIONS
reveals that the server returns 501 Not implemented.