[ESoupSession] Preset authentication when username is filled
System: Ubuntu 18.04.1 Evolution: 3.28.1-2
Problem:
I can't add a remote caldav calendar that is hosted on open-xchange server instance. After providing the url (https://[user]@[domain]/caldav/1144
) and username and clicking "Find Calendars" I get
Failed to get properties: HTTP error code 405 (Method Not Allowed): The server responded with an HTML page, which can mean there’s an error on the server or with the client request. The used URI was: https://[user]@[domain]/caldav/1144
The same calendar does get synchronised in MacOs Calendar app and Thunderbird Lightning plugin, not in Android DavDroid though.
Following the discussion with @mcrha on IRC, the issue seems to be: server allows unauthenticated OPTIONS request on a (possibly) private collection. That's okay for (read-only) shared collections, but not when the server returns something, but doesn't tell it's really a calendar the server should but does not respond to OPTIONS with 401