Implemented
0
[*DAV] Basic auth passwords are neither parsed as ISO-8859-1 nor is RFC 7617 "charset" header sent
Source: nextcloud/server#1731 · opened by @rfc2822
Nextcloud 10.0
Steps to reproduce
1. Create a user account with user name "test" and password "testö"
2. Access /remote.php/dav with Authentication: <base64 test:testö in UTF-8> → works
3. Access /remote.php/dav with Authentication: <base64 test:testö in ISO-8859-1> → doesn't work
Expected behaviour
There's discussion out there whether Basic auth as defined in RFC 2617 expects passwords in ASCII, ISO-8859-1, UTF-8 or RFC 2047-encoded. However, RFC 2617 seems to be quite clear:
where
So, the credentials string should be expected as ISO-8859-1. This is, for instance, how [okhttp handles it](
It should be noted that
• some other clients (like curl) send passwords as UTF-8, which seems to be incorrect, and
• another (the best?) possibility would be to implement RFC 7617 (i.e. send charset=UTF-8 in the WWW-Authenticate header).
Actual behaviour
Basic authentication [by clients that send non-ASCII passwords as ISO-8859-1 fails](
Steps to reproduce
1. Create a user account with user name "test" and password "testö"
2. Access /remote.php/dav with Authentication: <base64 test:testö in UTF-8> → works
3. Access /remote.php/dav with Authentication: <base64 test:testö in ISO-8859-1> → doesn't work
Expected behaviour
There's discussion out there whether Basic auth as defined in RFC 2617 expects passwords in ASCII, ISO-8859-1, UTF-8 or RFC 2047-encoded. However, RFC 2617 seems to be quite clear:
where
So, the credentials string should be expected as ISO-8859-1. This is, for instance, how [okhttp handles it](
It should be noted that
• some other clients (like curl) send passwords as UTF-8, which seems to be incorrect, and
• another (the best?) possibility would be to implement RFC 7617 (i.e. send charset=UTF-8 in the WWW-Authenticate header).
Actual behaviour
Basic authentication [by clients that send non-ASCII passwords as ISO-8859-1 fails](
No pledges yet. Be the first to back this.
Comments
Similar requests
[Meta]: Scoped app passwords: limit a token to selected apps
3 votes · 0 comments
Pick vCard version by url parameters
1 vote · 0 comments
[RFC] One file representation for DAV and PHP: node attribute providers
1 vote · 0 comments
Add a GUI for setting the value of dav.invitation_link_recipients, needed by non-public nextcloud servers
0 votes · 0 comments
Integration test for Versions DAV endpoint
0 votes · 0 comments
No comments yet.