Credentials bug in ownCloud 4.5.0
We are working on a bug related with special characters used in the password field. We need some help because we don't know exactly how it works on the server side.
We use wireshark to analyze what the apps send to the server.
Here is an example:
Username: pepe Password: ñ
What is send to the server is the following:
Authorization: Basic cGVwZTrx Credentials: pepe:\361
The authorization is on Base64 (http://en.wikipedia.org/wiki/Basic_access_authentication), separated using ":"
Converting cGVwZTrx to plain text (http://www.motobit.com/util/base64-decoder-encoder.asp) you get pepe:ñ.
We think that the problem coud be with the translation to plain text and related with the encoding used in the server side.
Could you please put us in touch with someone that could help us with this issue?
http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-2098
Browsers uses different encodings of non-ASCII characters before base64ing it. (That's the reason why the login will work with Chrome but not in Firefox...)
Stackoverflow has a nice list (little bit outdated - but nice to understand the problem). - An idea might be to check for the different encodings in the login (if this is possible) - or we just allow ASCII passwords.
Well, ok. The thing is, this is for the WebDAV iOS and Android app communications with the server. We don't know what special characters are allowed/not allowed, how they are handled and encoded...So not sure how to handle the problem or find the solution here.
Please check if #186 solves the problem.
It does not solve it completely. Only if 1 special character is in the username. 2 don't work.
If you use a special character alone as password (ig ?) it works, but if you use that character as a part of the password it doesn't (lin?ux or linux?)
Hello - any update here, we are seeing errors from the communnity again with this bug.
This remains an issue for special characters. It is still possible to set a password in the user panel that then cannot be used to log in using the web client, nor any of the mobile clients, some of the characters that i have found with this problem are:
- @ (sometimes)
- `
- €
- ß
- ç
- /
Repeat: Using 4.5.3, log in to ownCloud Create a user with a password like 'owncloud log out as the admin, try to log in as this user. it won't work
Firefox, Windows7, 4.5.3 on openSUSE
this seems resolved in ownCloud 4.5 daily build Jan 17. the password ?!@#$%' worked for me. So did lin?ux and lin@?ux, and many others.