You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a user logs in using the web interface and uses a different case for their username, and uploads a file, a new folder in the data directory is created along with the file being upload. When sharing a file link the file will not be found as it is not in the correct folder listed in the database..
A configuration option to force the username and the username in the data folder to be all lower case will prevent this from happening.
I order to correct this, I had to merge the users folders together to a lowercase folder. Changed the storage directory and username for each user to be lowercase in the database. Run TRUNCATE oc_filecache; to rebuild the file cache. Then educate each and every user to only log using a lowercase username.
Hm, shouldn’t the login mechanism just run .toLower() on the username every time? You won’t get users educated about using only a specific form of their username, the damn backend just has to account for this.
Users are authenticating locally to ownclouds mysql database. They are not using unix auth, ldap, or active directory. I very much like having virtual users in owncloud. Keeps security tighter for me.
@jancborchardt The devil is in the details here. The username is used in all kind of places like filesystem, other user backends and APIs. So we have to be careful here.
Activity
jancborchardt commentedon May 10, 2013
Hm, shouldn’t the login mechanism just run .toLower() on the username every time? You won’t get users educated about using only a specific form of their username, the damn backend just has to account for this.
Also, I thought this was already the case.
cc @karlitschek @LukasReschke
MTGap commentedon May 10, 2013
We had bugs with this in the past. It was resolved, but I'll investigate.
@Ryushin what user backend are you using?
Ryushin commentedon May 10, 2013
Users are authenticating locally to ownclouds mysql database. They are not using unix auth, ldap, or active directory. I very much like having virtual users in owncloud. Keeps security tighter for me.
karlitschek commentedon May 10, 2013
@jancborchardt The devil is in the details here. The username is used in all kind of places like filesystem, other user backends and APIs. So we have to be careful here.
MTGap commentedon May 12, 2013
I can't reproduce with the steps you provided.
In lib/user.php log the value of $uid on line 250 and see what case the username is when you login.
jancborchardt commentedon Jul 25, 2013
What’s the resolution on this one? Do we fix it? cc @DeepDiver1975 @bantu
VicDeo commentedon Jul 25, 2013
@jancborchardt I linked it from the related PR. Needs to be retested once it is merged
VicDeo commentedon Nov 30, 2013
duplicate of #1314