-
-
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
Unable to delete User #16340
Comments
Hmm. Not sure how to reproduce properly. We restore some json encoded data from the database but could not decode it. Please backup your database before you try to patch below. No warranty.
cc @schiessle |
This patch works fine ! |
@ThomasKuehner So can this issue be closed as resolved? |
@wiswedel this fix should be added into the code. Otherwise you have to change the code after every update. We got the same issue after migrating Owncloud to Nextcloud and the snippet fixed it. |
@levigo-systems mind to apply this patch? I'm still not sure how to push the wrong data into the db. |
A better way would be to deploy a fix for the invalid JSON in the oc_accounts table. Maybe a new CLI command "db:convert-invalid-json" or something like that. But if that's not possible i recommend to apply this patch above. |
We can integrate the patch. But the patch just does the damage control after the bug. It doesn't fix the bug that we even insert invalid json. Does anyone know where this might come from? Did you run manual SQL queries to modify it? |
We know of no changes directly in the database. |
Probably they use some app to create users. I agree to @ChristophWurst and @levigo-systems in general (fix bugs instead of adding workarounds) but our code should not fail if some more or less important data is missing ;) |
Is there a way to fix the broken JSON entry's manually? |
Inspect the row, fix it and update the row
No, you don't as of #17494 |
Steps to reproduce
Actual behaviour
when scrolling down: all users, who would be listed after that user are not listed and the message "An error occured during the request. Unable to proceed" appears
in loggig appears:
TypeError: Argument 1 passed to OC\Accounts\AccountManager::addMissingDefaultValues() must be of the type array, null given, called in /var/www/html/nextcloud/lib/private/Accounts/AccountManager.php on line 139 at /var/www/html/nextcloud/lib/private/Accounts/AccountManager.php#176
With a php skript following oparations work:
With a php skript following oparations do not work:
always the same log-message: TypeError: Argument 1 passed to OC\Accounts\AccountManager::addMissingDefaultValues() must be of the type array, null given, called in /var/www/html/nextcloud/lib/private/Accounts/AccountManager.php on line 139 at /var/www/html/nextcloud/lib/private/Accounts/AccountManager.php#176
Server configuration
Operating system:
Ubuntu 18-04 server
Web server:
apache2
Database:
mariadb-server
PHP version:
PHP 7.2.19
Nextcloud version: (see Nextcloud admin page)
Nextcloud 16.0.3
Updated from an older Nextcloud/ownCloud or fresh install:
fresh install
Where did you install Nextcloud from:
wget https://download.nextcloud.com/server/releases/latest.tar.bz2
List of activated apps:
calendar
Are you using encryption: yes/no
no
Is there a quick solution to get rid of this user?
The text was updated successfully, but these errors were encountered: