RFE: Better error message on HTTP 401 Unauthorized #51
Replies: 1 comment
-
This is not how proper service detection works. Often, the base URL (which may not be the CalDAV endpoint) can return 401, but a well-known URL can still work.
I suggest to change your server so that it rejects connections with RST instead of dropping the packets (firewall setting). Then you don't have to wait until the connection attempt times out.
If it would be that easy... as said above, it doesn't mean anything when the base URL or a well-known URL or a SRV/TXT URL returns 401, because the others may still work, and the 401 may or may not be related to the CalDAV service. So we don't know if the username/password is actually wrong or if the URL is wrong etc.... |
Beta Was this translation helpful? Give feedback.
-
Steps to reproduce:
What happens:
/
, gets a401 Unauthorized
response/.well-known/carddav
, gets an error (java.io.IOException: unexpected end of stream
)/.well-known/carddav
, gets a301 Moved Permanently
redirect to/
/
, gets an error (`java.io.IOException: unexpected end of stream')/
, gets a401 Unauthorized
responsejava.net.ConnectException
as expectedjava.net.ConnectException
as expectedWhat should happen:
DaVx⁵ should immediately communicate the HTTP status code
401 Unauthorized
it got from the server to the user, e.g. with a text like this:DaVx⁵ should not try again even once, but immediately display the message.
Details
I'm seeing this exception:
More details in the attached (partially censored) logs.txt.
Beta Was this translation helpful? Give feedback.
All reactions