-
Notifications
You must be signed in to change notification settings - Fork 7
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
TrashbinMigrator without FilesMigrator errors on loading Files webview #96
Comments
I’m failing to reproduce this, can you give exact instructions? Do I need to have something special in my trashbin? I put everything in the trash with a user and exported only trashbin, then I logged with another user and imported through UI, it worked, the files were in the trashbin and I can restore them. |
So according to @Pytal this was happening using occ and commenting out the FilesMigrator. |
Reproduced on server and user_migration
|
I’m still failing to reproduce an error. I do have an empty list in files, but I cannot find where you see an Exception. The empty list I think comes from the fact that the user after import is seen as having already connected before, I do not have the first run wizard either. But firstrunwizard use its own setting iirc, so not sure it is the same one for default files. |
Probably only happens on a minimal setup with Apache2, SQLite, and APCu then 🤔 Also without the first run wizard |
Ideas:
@icewind1991 Could you give us some insight on user home folder creation? |
I guess this is the problem. without logging in first, the setup routine is not triggered. This is currently by design IIRC. |
Ok, but where is the setup routine, and how can we trigger it in the import code? |
No idea, sry! Cc @blizzz maybe? |
If my conclusion is correct from the last few comments, saml faces the same issue and uses a dirty hack: https://github.com/nextcloud/user_saml/blob/master/lib/UserBackend.php#L159-L172 But maybe my conclusions are wrong. Normally this is called in |
So it seems the problem comes from login/lastLogin config user value, which we should most likely not import, so that Nextcloud knows the first login is a first login. |
(an other solution is to just create |
That would be analogue to only this line https://github.com/nextcloud/user_saml/blob/master/lib/UserBackend.php#L162 |
TrashbinMigrator runs export and import successfully without FilesMigrator but when loading the Files webview after importing it throws
\OCP\Files\NotFoundException
, details belowThe text was updated successfully, but these errors were encountered: