-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
define the constraints of a space id #3808
Comments
@butonic I thought that was fixed in reva. Do we need to update reva in ocis for this? |
decomposedfs is designed with uuids in mind. cs3org/reva#2854 fixes a case where a client tries to look up a storage space with a shorter space id. decomposedfs panicked because it was trying to access a string offset that did not exist. That was a bug. The decomposedfs currently segments
This is always the case for uuids, but when we are trying to provision a personal space for a new user we need to generate and assign a uuid for the user. We need to update reva anyway to get several fixes into ocis. |
In my case, im using ldap to login, and prefer uid instead uuid.
In this case how long the uid name needed to prevent errors? 9 chars like first post mentioned? Thanks. |
9 chars, yes. you can use uid to login, but please add a uuid like property for you users. I recommend a custom ownclouduuid attribute that you can fill with a uuid. names change or may be reused. you need a uuid to prevent collisions in those corner cases. |
yes, thanks for the advice and confirming 9chr limits, im leaning to uid because there is ldap role issue with pre-exist ldap deployment. |
This thread has been very helpful in getting ocis to work with an OpenLDAP server. I decided to use then
|
Describe the bug
cs3org/reva#2854 suggests, that a space id could be a one char string. Actually we need a minimum length of 9 characters for the decomposed fs to work.
Steps to reproduce
Steps to reproduce the behavior:
OCIS_ADMIN_USER_ID
to something short (eg. "admin")Expected behavior
No error happens, admin can upload stuff into the home space
Actual behavior
Error happens, admin can not upload stuff into the home space
storage-users errors:
Additional context
We could define a minimum length of a space id. But that implicitly also introduces a minimum length of user ids, since we use the user id as home space id, too.
cc @butonic @rhafer
The text was updated successfully, but these errors were encountered: