When CalDAV returns 401 Unauthorized ask the user for password, without telling her "The server responded with an HTML page, which can mean there's an error on the server"
I want to add https://mail.aegee.org/dav/calendars/user/chair/agenda as CalDAV collection in Evolution 3.28.3.
This address can be accessed in two modes:
- without username, in which case the access is read-only
- with correct username and password, in which case the access is read/write
Doing Edit > Accounts > Add > Calendar > CalDAV > entering the URL > Find Calendars insists, that I enter a user name. Evolution then finds the calendar and the setup can continue. However, if I enter the user name, that is supposed to have write access, Evolution integrates the calendar, without asking for password.
Having the right username, inserting later a VEVENT Evolutions shows the message "Failed to put data. HTTP error code 401 (Unauthorized): The server responded with an HTML page, which can mean there's an error on the server or with the client request. The used URL was https://mail.aegee.org/dav/calendars/user/chair/agenda/random-1234.ics".
Clicking on Reconnect asks for password and then the process continues.
Tweak evolution everytime it gets 401 to ask the user for username and password, as this mean that the password on the server was changed, or Evolution never asked for password on the account. Don't tell the user for 401 errors, that the server returned HTML page "which can mean there's an error on the server", as this is misleading.