-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Files not accessible after sharing LDAP user was deleted #11551
Comments
GitMate.io thinks possibly related issues are #4017 (LDAP user not able to delete folder), #1708 (Sharing: Cannot delete files from share ), #8651 (Delete a file of a not a valid user (LDAP)), #5577 (Cannot delete User which is deleted in LDAP), and #3854 ("Resharing is not allowed" for LDAP users). |
cc @blizzz |
I am seeing this exact same issue. Re-enabling the user in the LDAP source allows the users they have shared with to see their root directory again. If someone could advise on the best solution to this (if there is one), other than deleting the user from nextcloud that would be appreciated. |
@gema2007 @Zappatron can you check again with 14.0.2 (right now the RC is available)? It has a fix that deals with failed storages. |
Let's close it for now until we know that it is still not fixed in 14.0.2 |
I am seeing this with 14.0.5. |
There is no 14.0.5 🤔 |
Heh, sorry, this is a slow morning here. 😛 I meant 14.0.3. |
I have checked the users that were appearing in the log, and after making sure they were safe to remove, I user:delete'd them. The error log is clean now, but user2 still just gets a spinner and cannot access any of their files. This might be an unrelated issue though as I have also checked that user1 in our case had never shared anything with user2. |
Might this be related? in ldap:show-remnants
but then:
How can there be 0 files if show-remnants reports the user was a sharer? |
cc @blizzz |
A bit more info. User2 reports:
|
@jmallach do you have a log (maybe a backtrace)? |
No, but I can provide if you point me at docs on how ot get the info you need. |
I have this in the log, for a few different users:
|
I have also spotted this, probably related:
|
In 15.0.7 it is present |
how I delete the share of non-existing user ? |
|
Same thing in 16.0.5 and it is so annoying. The link from @blizzz explains the process I've been using but in a busy environment this really needs to be automated and run often or users are complaining all the time that their Desktop sync does not work. And of course the |
you can try out #17717, but if it goes in, it won't be backported |
I guess this is fixed with 17717. |
Steps to reproduce
user1 shares files with user2
user1 ist deleted from the LDAP server and appears in the remnants table (php occ ldap:show-remnants)
user2 can’t access all his files until user1 is deleted from nextcloud with “php occ user:delete user1”. The logfile says “OC\User\NoUserException: user1 is not a valid user anymore”.
Expeted behaviour
user2 can normally access his files
Actual behaviour
user2 can't access any files
The logfile says “OC\User\NoUserException: user1 is not a valid user anymore”
Server configuration
Operating system: Ubuntu 16.04
Web server: Apache 2.4.18
Database: MySQL
PHP version: 7.0
Nextcloud version: 14.01
Updated from an older Nextcloud/ownCloud or fresh install: updated
Where did you install Nextcloud from:
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: local/smb/sftp/...
Are you using encryption: no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP configuration (delete this part if not used)
LDAP config
Client configuration
Browser:
Operating system:
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
The text was updated successfully, but these errors were encountered: