[full-ci] Revert loader logic in ChunkLocationProvider.php#40700
[full-ci] Revert loader logic in ChunkLocationProvider.php#40700
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 webUISharingExt2-git-chrome-mariadb10.2-php7.4 failed. The build has been cancelled. |
|
💥 Acceptance tests pipeline webUIRestrictSharing-chrome-mariadb10.2-php7.4 failed. The build has been cancelled. |
|
I think we'll have to investigate what's happening there. Accordingly to the constructor in https://github.com/owncloud/core/blob/master/lib/private/Files/Mount/MountPoint.php#L79 , if the loader is null, we use an "empty" storage factory instead of whatever storage factory is prepared. In particular, some wrappers could be set in place in the factory we want to inject, but they won't be present in the newly created one (if the loader is null). If that's the case, we should remove the loader parameter in this PR because it's unused. We probably should also investigate why the code is dependent on a specific loader; the wrappers around the storages shouldn't matter I think. |
|
Yes, changing this code here does help the firewall tests to all pass. But actually the change here is removing the passing of "loader" to the As @jvillafanez says, this needs investigation to understand what the code used to do, and what it should do. (And to try and provide a solution that is reasonably upward-compatible for apps like firewall - so that we don't have to require specific versions of firewall to go with specific releases of core) |
Fix changelog typo #40511
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit) from 9.6.5 to 9.6.6. - [Release notes](https://github.com/sebastianbergmann/phpunit/releases) - [Changelog](https://github.com/sebastianbergmann/phpunit/blob/main/ChangeLog-9.6.md) - [Commits](sebastianbergmann/phpunit@9.6.5...9.6.6) --- updated-dependencies: - dependency-name: phpunit/phpunit dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
…hpunit-9.6.6 Bump phpunit/phpunit from 9.6.5 to 9.6.6
…#40702) * occ encryption:encrypt-all should not auto-enable user-key encryption * add changelog and tests * Update changelog/unreleased/40702 Co-authored-by: Phil Davis <phil@jankaritech.com> --------- Co-authored-by: Phil Davis <phil@jankaritech.com>
* Add rewrite base to generated .htaccess rules If htaccess.RewriteBase is set we need to prepend it to the generated rules. * Fix potential double slash and empty rewriteBase if rewriteBase is "/" * use preg_quote() for proper regex escaping. * Update lib/private/Setup.php --------- Co-authored-by: Juergen Weigert <jnweiger@gmail.com>
* prevent 507 Insufficient Storage on 32bit systems * add changelog * improve if-else logic * retrigger CI
* fix permission bits when enforcing rw links * adapt test to match the code. * list all cases that the admin config for password enforces refers to --------- Co-authored-by: Piotr Mrówczyński <piotr@owncloud.com>
|
When running the tests locally, in both cases - with and without loader in ChunkLocationProvider.php - following is logged (which is expected): In addition, with the loader in place (which makes the firewall tests to fail) this is also logged: |
|
I don't know if those errors are ok because there is a firewall rule being correctly applied, or the errors shouldn't happen... |
jnweiger
left a comment
There was a problem hiding this comment.
Let us merge this for 10.12.1
I'd like to see a full CI run. Please rebase and merge.
Please open a separate issue for further investigation of the $loader wrapper logic.
…re into loader_chunklocationprovider
|
Pasquale Tripodi seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
|
Kudos, SonarCloud Quality Gate passed! |
|
My rebase attempt failed. The history here is now a mess. |








Description
Revert loader logic in ChunkLocationProvider.php
Related Issue
Motivation and Context
File Firewall acceptance tests were failing after merging #40693 as we changed the position of the loader in the constructor. Not sure why this is happening but reverting the change seems to make the tests to pass.
How Has This Been Tested?
Ran File Firewall acceptance tests locally and make sure that following scenarios pass (they were previously failing):
Types of changes
Checklist: