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
Use getHome in ChunkLocationProvider.php #40693
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. |
@phil-davis I guess this does not require changelog and/or tests as it relates to a change introduced in #40567 ? |
retrigger license cla
Kudos, SonarCloud Quality Gate passed! |
That change is already released in 10.12.0. So this is a fix to already-released code. We should put a changelog about the fix, because the behavior in 10.12.0 and the next release (10.12.1 or 10.13.0) will be different. Also, @pako81 if/when we get a few fixes related to 10.12.0 you can decide if we make a 10.12.1 release to get those "out the door" or if they wait until 10.13.0 |
makes sense - will do.
Yes, actually we are evaluating together with @jnweiger if this fix would already justify a 10.12.1 release or if we should rather wait. I would probably already go with a 10.12.1. |
@pako81 The WebUI tests are failing in the firewall app after this PR merged. Could you have a look into it? |
Description
Use
getHome()
in ChunkLocationProvider.phpRelated Issue
Motivation and Context
When using the
home_folder_naming_rule
attribute for defining the home directories for LDAP users (configurable over the LDAP wizard) chunks of users' uploads are wrongly created under the default data directory rather than inside the configured home directory.This is because currently https://github.com/owncloud/core/blob/v10.12.0/apps/dav/lib/Upload/ChunkLocationProvider.php#L67-L70 is missing a check for such cases. It seems therefore better to rely on the
getHome()
method for getting the user's home.How Has This Been Tested?
Manually by setting the
home_folder_naming_rule
attribute for defining the home directories for LDAP users and observing chunks are now uploaded inside the configured home directory.Types of changes
Checklist: