1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-09-20 17:44:03 +00:00

Commit graph

  • 125825af06
    Merge 1ef7710da4 into 52f97c1f6a lukinovec 2026-09-18 10:58:17 +02:00
  • 1ef7710da4 remove directory rtrim suffix-storage-path lukinovec 2026-09-18 10:58:01 +02:00
  • bccef51b36
    Merge 37a95a1667 into 52f97c1f6a lukinovec 2026-09-17 10:39:05 +02:00
  • 37a95a1667
    Merge branch 'master' into resource-syncing-fix resource-syncing-fix lukinovec 2026-09-17 10:39:02 +02:00
  • 86c265da03 Test detaching, test trashing already trashed resources in a separate test lukinovec 2026-09-17 10:28:01 +02:00
  • adad6acebe Fix code style (php-cs-fixer) github-actions[bot] 2026-09-16 14:42:36 +00:00
  • 735a2dd48b Make force deleting central resources force delete already-trashed tenant resources lukinovec 2026-09-16 16:42:06 +02:00
  • 35d96b5b6f Use rmdir instead of deleteDirectory lukinovec 2026-09-15 11:09:40 +02:00
  • 388f253964 Assert symlink jobs dispatch events lukinovec 2026-09-14 16:39:33 +02:00
  • 1a3ab476b0 In the asset controller, throw if tenancy isn't initialized lukinovec 2026-09-14 12:57:37 +02:00
  • 42df25ac39 Update removeNestedDirectories docblock lukinovec 2026-09-11 07:05:31 +02:00
  • 9ec732cfce rtrim directory and public root in remove symlinks action lukinovec 2026-09-11 07:05:10 +02:00
  • 9e890e9a67 Improve symlink comments lukinovec 2026-09-10 12:32:14 +02:00
  • 1e1e2efb8c Refactor remove symlinks action, add static::$removeNestedDirectories lukinovec 2026-09-10 12:09:07 +02:00
  • 94a4c740ae
    Merge dd34ebd64d into 52f97c1f6a Lucas Michot 2026-09-10 01:28:30 -07:00
  • 268b78e753
    Merge 61410b52d4 into 52f97c1f6a Dmitry Maranik 2026-09-10 01:27:02 -07:00
  • b2b8d50edb Add symlink support for prefixed disks lukinovec 2026-09-09 12:18:04 +02:00
  • 9673464128
    minor test cleanup Samuel Stancl 2026-09-08 20:16:57 -07:00
  • d783879f98
    add assertion to ensure the two paths are the same Samuel Stancl 2026-09-08 19:43:42 -07:00
  • 9bfc9c4dca Delete the 'tenant assets are served from the central storage path in central context' test lukinovec 2026-09-08 18:27:38 +02:00
  • 823e5c34d6 Merge the 'served from the resolved root' tests lukinovec 2026-09-08 18:18:54 +02:00
  • fe85fe45bd Merge 'not a local disk'/'not tenant-aware'/'unnamed parent' throwing tests into a single test lukinovec 2026-09-08 18:11:41 +02:00
  • 1abeb852de Merge the new "throws an exception when accessing a file in a directory whose name starts with the name of the asset root" test with the pre-existing one lukinovec 2026-09-08 17:54:20 +02:00
  • 4af473ede5 Move falsy url_override assertions to more appropriate places lukinovec 2026-09-08 16:58:42 +02:00
  • e3ba445630 Refactor scoped disk exception throwing tests, remove redundant test lukinovec 2026-09-08 16:22:15 +02:00
  • e6d785a8d1 Refactor DeleteTenantStorage tests lukinovec 2026-09-08 15:00:19 +02:00
  • 45100453c5 Refactor scoped disks test lukinovec 2026-09-08 14:55:24 +02:00
  • 496e0c36bd Improve TenantAssetController comments lukinovec 2026-09-08 11:54:58 +02:00
  • f6e1f04210
    Merge f690945a82 into 52f97c1f6a lukinovec 2026-09-08 08:29:13 +02:00
  • 45f6bc6b96 Fix getBoundTenantStoragePath -> getTenantStoragePath rename leftover lukinovec 2026-09-07 13:07:02 +02:00
  • 197ca18566 Simplify baseDiskName() lukinovec 2026-09-07 12:32:24 +02:00
  • dde9be6f58 Throw an exception if a scoped disk is listed in tenant-aware disks without its base disk lukinovec 2026-09-07 11:04:29 +02:00
  • e7c0193931 Add comment above $attemptedPath lukinovec 2026-09-07 10:42:18 +02:00
  • efc0877f10 minor polish Samuel Stancl 2026-09-06 22:09:02 -07:00
  • 394a9fa562 Explicitly skip scoped disks in diskRoot() lukinovec 2026-09-03 16:24:17 +02:00
  • 9cda4cb3e4 Forget scoped disk's parent no matter how nested it is lukinovec 2026-09-03 16:16:27 +02:00
  • e20085588b Assert that TenantAssetController throws for scoped disks with a non-local parent lukinovec 2026-09-03 16:03:15 +02:00
  • 2cd514c781 Test that listing scoped disks in tenancy.filesystem.disks is harmless (regression test) lukinovec 2026-09-03 15:45:00 +02:00
  • 3936ab9eff Test that non-local scoped disks get scoped per tenant lukinovec 2026-09-03 14:59:22 +02:00
  • ae91281d3a Assert that nested scoped disks are scoped properly (regression test) lukinovec 2026-09-03 14:53:59 +02:00
  • e0e696f83e Throw an exception in TenantAssetController if the disk is not tenant-aware lukinovec 2026-09-02 14:42:23 +02:00
  • 041b023a95 Assert that TenantAssetController cannot serve assets from a disk that isn't tenant-aware (regression test) lukinovec 2026-09-02 14:35:44 +02:00
  • 99994dca85 Delete redundant comment lukinovec 2026-08-31 16:52:08 +02:00
  • 8e671fe5be Use "placed within" instead of "appended to" in log bootstrapper comment lukinovec 2026-08-31 16:28:12 +02:00
  • 41f7e2e034 improve comments Samuel Stancl 2026-08-27 18:20:35 -07:00
  • bb12443fa6 Update src/Jobs/DeleteTenantStorage.php lukinovec 2026-08-25 13:36:10 +02:00
  • 2ef1ea94ed Make LogChannelBootstrapper not depend on suffixed storage_path() lukinovec 2026-08-25 13:20:50 +02:00
  • ae88836c0b Clarify TenantAssetController's docblock lukinovec 2026-08-24 16:03:09 +02:00
  • ae98ac3bd4 Fix code style (php-cs-fixer) github-actions[bot] 2026-08-21 14:07:31 +00:00
  • 802022a926 Exercise the valid asset path before testing traversal lukinovec 2026-08-21 16:07:01 +02:00
  • e70057e3ba Read the tenant asset root from the resolved disk instead of the disk config lukinovec 2026-08-21 14:16:40 +02:00
  • efa8c03680 Assert that the tenant asset root is read from the resolved disk (regression tests) lukinovec 2026-08-21 14:06:24 +02:00
  • 848736448c Clarify TenantAssetController docblock lukinovec 2026-08-20 16:44:19 +02:00
  • 9403d8c8fd Add afterEach cleanup to TenantAssetTest lukinovec 2026-08-20 16:44:08 +02:00
  • 5e54e3e7d9 Reword DeleteTenantStorage docblock lukinovec 2026-08-20 16:00:54 +02:00
  • 4826667ac1 Add test that covers how tenant_asset() works when called in central context lukinovec 2026-08-20 15:34:02 +02:00
  • 1a693d8e36 Improve comments lukinovec 2026-08-20 15:32:12 +02:00
  • 15144def3c Update tenancy.filesystem config docblocks lukinovec 2026-08-20 11:58:31 +02:00
  • 7ecb34f3fe Skip disks with *empty* url_override in diskUrl() lukinovec 2026-08-20 11:51:03 +02:00
  • 6b27bc5f36 Assert that disks with an empty url_override are skipped by both the FS bootstrapper and possibleTenantSymlinks (regression test) lukinovec 2026-08-20 11:48:37 +02:00
  • 223b49a395 Correct FSBootstrapper and DeleteTenantStorage docblocks lukinovec 2026-08-19 15:22:33 +02:00
  • ae77c49985 Stop requiring a root_override in possibleTenantSymlinks lukinovec 2026-08-19 15:15:14 +02:00
  • aad435da44 Assert that symlinks work without a root_override and that disks with a null url_override are skipped (regression test) lukinovec 2026-08-19 15:10:07 +02:00
  • 79484cac09 Make the suffix_storage_path config comment clearer lukinovec 2026-08-19 10:53:33 +02:00
  • 2bd590ef0e Correct the regression test lukinovec 2026-08-19 10:46:08 +02:00
  • 0eb2cf18a4 Throw an exception in possibleTenantSymlinks if the disk is not tenant-aware lukinovec 2026-08-19 10:35:07 +02:00
  • b6e6aa634c Assert that CreateStorageSymlinksAction cannot create symlinks for disks that are not in tenancy.filesystem.disks, i.e. aren't tenant-aware (regression test) lukinovec 2026-08-19 10:27:20 +02:00
  • 4e1fb850bc Require a directory boundary when checking that an asset is inside the asset root lukinovec 2026-08-18 17:14:42 +02:00
  • ff3a2a3e2c Assert that the tenant asset controller only serves files inside the configured disk's root (regression test) lukinovec 2026-08-18 17:13:29 +02:00
  • a9cdeb220b Fix the suffix_storage_path comment in the config lukinovec 2026-08-18 14:54:22 +02:00
  • c1e09fb25d Assert that DeleteTenantStorage does not delete the central storage directory when the FS bootstrapper is disabled lukinovec 2026-08-18 14:21:05 +02:00
  • 1fb9acec75 Restore the central storage directory check in DeleteTenantStorage lukinovec 2026-08-18 14:20:17 +02:00
  • b771fd13a9 Make the disk used for serving tenant assets configurable lukinovec 2026-08-18 14:19:40 +02:00
  • 11fec0345d Make TenantAssetController not depend on suffixed storage_path() lukinovec 2026-08-17 16:52:05 +02:00
  • a9a727451e Assert that TenantAssetController does not depend on storage_path() suffixing (regression test) lukinovec 2026-08-17 16:48:59 +02:00
  • 98d86478e7 Make storage symlinks point to the tenant's disk root instead of storage_path() lukinovec 2026-08-08 14:22:29 +02:00
  • 179114bfb7 Make storage symlink test assert the expected behavior lukinovec 2026-08-08 14:19:21 +02:00
  • 0bd58528d2 Make DeleteTenantStorage delete the tenant storage directory regardless of suffix_storage_path lukinovec 2026-08-08 13:07:38 +02:00
  • 3cc7902377 Make DeleteTenantStorage test assert the expected behavior lukinovec 2026-08-08 13:04:37 +02:00
  • 52f97c1f6a
    [MINOR BC] Fix FilesystemTenancyBootstrapper discarding configured cache and session paths (#1473) master lukinovec 2026-09-08 03:32:11 +02:00
  • 9cf2444803
    only use uncPrefix when dedup worked Samuel Stancl 2026-09-02 18:10:24 -07:00
  • 7659754629
    improve wording in comments Samuel Stancl 2026-09-02 18:04:27 -07:00
  • ca9afad3a5 Handle non-UTF-8 paths in normalizePath() lukinovec 2026-09-01 12:59:07 +02:00
  • 189c2b7436 Extract normalization into a separate method lukinovec 2026-08-31 14:34:39 +02:00
  • 0461697e6d Revert tenantScopedPath changes lukinovec 2026-08-31 12:15:07 +02:00
  • 127945190e Correct and simplify tenantScopedPath() lukinovec 2026-08-28 16:08:15 +02:00
  • 10de159b88 Trim any trailing separator from the original storage path in tenantStoragePath lukinovec 2026-08-27 16:17:05 +02:00
  • 3ee5a8e426 Normalize the original storage path in tenantScopedPath too lukinovec 2026-08-26 17:40:14 +02:00
  • 857c6fc233 Trim any trailing separator from the original root in diskRoot lukinovec 2026-08-26 17:11:59 +02:00
  • bd101797ea Correct and clarify the suffix appending comment in tenantScopedPath lukinovec 2026-08-26 13:22:11 +02:00
  • 6ee058d166 Delete redundant trailing deleteDirectory calls from tests lukinovec 2026-08-26 13:06:56 +02:00
  • f4464797f3
    minor test improvements Samuel Stancl 2026-08-25 19:17:24 -07:00
  • 11811285f1
    remove comment Samuel Stancl 2026-08-25 18:26:53 -07:00
  • a036e0eb11
    use DIRECTORY_SEPARATOR instead of hardcoded '/' Samuel Stancl 2026-08-25 18:26:53 -07:00
  • d8bed726d5 Separate "file cache stores are separated per tenant" into two specific tests lukinovec 2026-08-18 11:30:39 +02:00
  • dd34ebd64d Restore explanatory comments in Seed::__construct and configure() Lucas Michot 2026-08-08 20:21:38 +02:00
  • ae61e8b111 Remove ErrorException assertion lukinovec 2026-08-07 14:56:58 +02:00
  • 8c8bd6e88e Make scopeSessions() respect the original configured session.files path instead of hardcoding /framework/sessions lukinovec 2026-08-06 14:06:17 +02:00
  • efb417dada Add regresion test for scopeSessions ignoring the session.files config lukinovec 2026-08-06 12:48:24 +02:00
  • 5a5ab2baf6 Remove explanatory comments from Seed::__construct and configure() Lucas Michot 2026-08-06 12:01:02 +02:00