-
-
Notifications
You must be signed in to change notification settings - Fork 489
[MINOR BC] [4.x] Make storage features not depend on the suffix_storage_path config #1479
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
Open
Open
Changes from all commits
Commits
Show all changes
70 commits
Select commit
Hold shift + click to select a range
3cc7902
Make DeleteTenantStorage test assert the expected behavior
lukinovec 0bd5852
Make DeleteTenantStorage delete the tenant storage directory regardle…
lukinovec 179114b
Make storage symlink test assert the expected behavior
lukinovec 98d8647
Make storage symlinks point to the tenant's disk root instead of stor…
lukinovec a9a7274
Assert that TenantAssetController does not depend on storage_path() s…
lukinovec 11fec03
Make TenantAssetController not depend on suffixed storage_path()
lukinovec b771fd1
Make the disk used for serving tenant assets configurable
lukinovec 1fb9ace
Restore the central storage directory check in DeleteTenantStorage
lukinovec c1e09fb
Assert that DeleteTenantStorage does not delete the central storage d…
lukinovec a9cdeb2
Fix the suffix_storage_path comment in the config
lukinovec ff3a2a3
Assert that the tenant asset controller only serves files inside the …
lukinovec 4e1fb85
Require a directory boundary when checking that an asset is inside th…
lukinovec b6e6aa6
Assert that CreateStorageSymlinksAction cannot create symlinks for di…
lukinovec 0eb2cf1
Throw an exception in possibleTenantSymlinks if the disk is not tenan…
lukinovec 2bd590e
Correct the regression test
lukinovec 79484ca
Make the suffix_storage_path config comment clearer
lukinovec aad435d
Assert that symlinks work without a root_override and that disks with…
lukinovec ae77c49
Stop requiring a root_override in possibleTenantSymlinks
lukinovec 223b49a
Correct FSBootstrapper and DeleteTenantStorage docblocks
lukinovec 6b27bc5
Assert that disks with an empty url_override are skipped by both the …
lukinovec 7ecb34f
Skip disks with *empty* url_override in diskUrl()
lukinovec 15144de
Update tenancy.filesystem config docblocks
lukinovec 1a693d8
Improve comments
lukinovec 4826667
Add test that covers how tenant_asset() works when called in central …
lukinovec 5e54e3e
Reword DeleteTenantStorage docblock
lukinovec 9403d8c
Add afterEach cleanup to TenantAssetTest
lukinovec 8487364
Clarify TenantAssetController docblock
lukinovec efa8c03
Assert that the tenant asset root is read from the resolved disk (reg…
lukinovec e70057e
Read the tenant asset root from the resolved disk instead of the disk…
lukinovec 802022a
Exercise the valid asset path before testing traversal
lukinovec ae98ac3
Fix code style (php-cs-fixer)
github-actions[bot] ae88836
Clarify TenantAssetController's docblock
lukinovec 2ef1ea9
Make LogChannelBootstrapper not depend on suffixed storage_path()
lukinovec bb12443
Update src/Jobs/DeleteTenantStorage.php
lukinovec 41f7e2e
improve comments
stancl 8e671fe
Use "placed within" instead of "appended to" in log bootstrapper comment
lukinovec 99994dc
Delete redundant comment
lukinovec 041b023
Assert that TenantAssetController cannot serve assets from a disk tha…
lukinovec e0e696f
Throw an exception in TenantAssetController if the disk is not tenant…
lukinovec ae91281
Assert that nested scoped disks are scoped properly (regression test)
lukinovec 3936ab9
Test that non-local scoped disks get scoped per tenant
lukinovec 2cd514c
Test that listing scoped disks in tenancy.filesystem.disks is harmles…
lukinovec e200855
Assert that TenantAssetController throws for scoped disks with a non-…
lukinovec 9cda4cb
Forget scoped disk's parent no matter how nested it is
lukinovec 394a9fa
Explicitly skip scoped disks in diskRoot()
lukinovec efc0877
minor polish
stancl e7c0193
Add comment above $attemptedPath
lukinovec dde9be6
Throw an exception if a scoped disk is listed in tenant-aware disks w…
lukinovec 197ca18
Simplify baseDiskName()
lukinovec 45f6bc6
Fix getBoundTenantStoragePath -> getTenantStoragePath rename leftover
lukinovec 496e0c3
Improve TenantAssetController comments
lukinovec 4510045
Refactor scoped disks test
lukinovec e6d785a
Refactor DeleteTenantStorage tests
lukinovec e3ba445
Refactor scoped disk exception throwing tests, remove redundant test
lukinovec 4af473e
Move falsy url_override assertions to more appropriate places
lukinovec 1abeb85
Merge the new "throws an exception when accessing a file in a directo…
lukinovec fe85fe4
Merge 'not a local disk'/'not tenant-aware'/'unnamed parent' throwing…
lukinovec 823e5c3
Merge the 'served from the resolved root' tests
lukinovec 9bfc9c4
Delete the 'tenant assets are served from the central storage path in…
lukinovec d783879
add assertion to ensure the two paths are the same
stancl 9673464
minor test cleanup
stancl b2b8d50
Add symlink support for prefixed disks
lukinovec 1e1e2ef
Refactor remove symlinks action, add static::$removeNestedDirectories
lukinovec 9e890e9
Improve symlink comments
lukinovec 9ec732c
rtrim directory and public root in remove symlinks action
lukinovec 42df25a
Update removeNestedDirectories docblock
lukinovec 1a3ab47
In the asset controller, throw if tenancy isn't initialized
lukinovec 388f253
Assert symlink jobs dispatch events
lukinovec 35d96b5
Use rmdir instead of deleteDirectory
lukinovec 1ef7710
remove directory rtrim
lukinovec File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.