-
Notifications
You must be signed in to change notification settings - Fork 2.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
Set flag in oc_preferences after copying skeleton files #23430
Comments
Tricky part is the migration: go through every user and check if the home folder is there, if yes, set the flag to "oc_preferences" once. |
Thinking of it, we already have a flag "lastLogin" in the |
In general I think we should try and detect intermittent unavailable home storage in many places in the code, or at least the critical code paths that might delete important stuff. |
I would prefer a separate entry for the skeleton, migration could be done per user after the current check if the skeleton is copied |
👍 |
Would also help solve #25212. It sometimes happen that some other process already puts files in the home. |
Solved differently on 9.2 already using the last login value and a "first login" hook, closing. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
It's pointless to copy skeleton files over and over again when the home folder got missing at login time.
Also, the current logic makes it very tricky to detect whenever an individual folder is missing temporarily.
I suggest that whenever the home folder is missing and before the skeleton gets copied, we make a call to
oc_preferences
to check for a "skeleton_done" flag. If the flag is there, throwStorageNotAvailableException
for the home folder.Else, create the skeleton.
@MorrisJobke @icewind1991
The text was updated successfully, but these errors were encountered: