Open LucasRueckert opened 4 days ago
From the top of my head I see two possible reasons for this:
The users we tested with have all logged in at leased once and none of them are "Light Users". We currently have no mapping between LDAP and any OCIS roles/groups.
We had some migrations of space indices from 4 to 6.
You can re run them to repair the space index.
https://doc.owncloud.com/ocis/5.0/maintenance/commands/rolling-back-and-forward.html
We did setup version 6 from scratch, so no old data/config.
Are there any error logs on the server? Especially when a user who doesn't have a space logs in, ocis will try to create a space for him. This seems to fail though. Could you check if there any logs telling what is wrong?
Here are the logs from a user without a "Personal Space" logging in:
Jun 28 08:05:50 ocis[8077]: {"level":"warn","service":"frontend","pkg":"rhttp","traceid":"70a6ee7a6205b0329ba83facf1bfca62","time":"2024-06-28T08:05:50Z","message":"core access token not set"}
Jun 28 08:05:50 ocis[8077]: {"level":"error","service":"storage-users","pkg":"rgrpc","traceid":"7cae196b20e0c9f0f62aa781076a73d5","error":"internal error: malformed link","id":"","time":"2024-06-28T08:05:50Z","message":"resolve space id index entry, skipping"}
Jun 28 08:05:50 ocis[8077]: {"level":"error","service":"storage-users","pkg":"rgrpc","traceid":"d195abd5965b7c4ff3adca56700ba0ed","error":"internal error: malformed link","id":"","time":"2024-06-28T08:05:50Z","message":"resolve space id index entry, skipping"}
Jun 28 08:05:51 ocis[8077]: {"level":"error","service":"storage-users","pkg":"rgrpc","traceid":"dab78a3d44facc2dbe304467bbe9da7f","error":"internal error: malformed link","id":"","time":"2024-06-28T08:05:51Z","message":"resolve space id index entry, skipping"}
Also we found in /var/lib/ocis/storage/users/indexes/by-user-id
that, when looking at the .mpk-files in a hexeditor, all users with a "Personal Space" had dots between their username and the first slash, while all users without the "Personal Space " had one other character between the username and the first slash.
with "Personal Space": ..mwassmann..../../../spaces/mw/assmann/nodes/mw/as/sm/an/n
without "Personal Space": ..tpabst.&../../../spaces/tp/abst/nodes/tp/ab/st
Describe the bug
While testing OCIS we found that some users have a "Personal Space" and some users don't. All user accounts come from our LDAP, there is no pattern visible regarding the accounts, it seems to be random. But "Personal Space" is available to all users through WebDav.
When a user without the "Personal Space" tries to access it through the URL directly ,the user gets the Message "Resolving private link ...", without being able to accessing it.![image](https://github.com/owncloud/ocis/assets/39559524/48ef2b27-fc21-4d34-9ed1-926beef2f46e)
Users with "Personal Space":
Web Interface:![image](https://github.com/owncloud/ocis/assets/39559524/d11dec4e-0359-4a7a-ad60-19a3bcc3ac50)
API Request:
Users without "Personal Space:"
Web Interface:![image](https://github.com/owncloud/ocis/assets/39559524/63cccb55-4ee6-437f-b9ab-07b86d5b78b1)
API Request:
Steps to reproduce
none
Expected behavior
All users get a "Personal Space" at first login.
Actual behavior
Randomly some users have a "Personal Space" and some don't.
Setup
OS: Debian 11
Additional context
We had the problem from Version 4.0 of OCIS till Version 6.