-
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
Ensure the /user/files directory is always present in the FS #40091
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
💥 Acceptance tests pipeline apiFederationToShares1-git-mariadb10.2-php7.4 failed. The build has been cancelled. |
https://www.githubstatus.com/incidents/gcqz5grcs4z6 - there was an incident with GitHub that says it was resolved 40 minutes ago. Maybe it is not really resolved. Someone should restart CI "in a while". |
1418c18
to
4e7c525
Compare
https://drone.owncloud.com/owncloud/core/35842/21/8 This is issue #40098 and will block any merging of core PRs. I really don't know how to fix it. Edit: fixed in #40101 |
4e7c525
to
164f357
Compare
@jvillafanez you have status |
"This branch is 2 commits ahead, 92 commits behind master." It will be good to rebase also. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changelog also needed
164f357
to
0c3862b
Compare
Rebased, phpdocs and changelog added. I've also added the optional parameter in the interface. |
0c3862b
to
a36f22d
Compare
Change reverted. The public interface won't change, and the private implementation will use the additional parameter. We'll keep it as an internal change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM 👍
Description
Ensure the user's folder always exists. In addition, update the login timestamp after the user is prepared to login, in particular, after the skeleton files have been copied.
Related Issue
https://github.com/owncloud/enterprise/issues/5187
Motivation and Context
There might be temporary errors preventing the user's folder from being created properly. If this happens, the admin would need to create the directory by himself. This PR ensure that the user's folder is eventually created, assuming it's a temporary error.
How Has This Been Tested?
Manually tested.
The "/user/files" directory is recreated.
Note that step 2 is mostly for testing. The real expectation is that something goes wrong during the log in in step 1 and the "/user/files" directory isn't created in the first place.
Screenshots (if appropriate):
Types of changes
Checklist: