From d3e6c48a5999a720560beec586de0a9a4331ec8a Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Thu, 12 Feb 2026 23:57:51 +1300 Subject: [PATCH] fix: Add missing Authorization parameter to Columns XList action The TablesDB Columns XList::action() method was missing the Authorization $authorization parameter that exists in the parent Attributes XList class, causing a PHP fatal error that prevented the appwrite service from starting. Co-Authored-By: Claude Opus 4.6 --- .../Modules/Databases/Http/TablesDB/Tables/Columns/XList.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/XList.php b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/XList.php index e7f8bdf9e4..b38edf6218 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/XList.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/TablesDB/Tables/Columns/XList.php @@ -9,6 +9,7 @@ use Appwrite\SDK\Response as SDKResponse; use Appwrite\Utopia\Database\Validator\Queries\Columns; use Appwrite\Utopia\Response as UtopiaResponse; use Utopia\Database\Database; +use Utopia\Database\Validator\Authorization; use Utopia\Database\Validator\UID; use Utopia\Http\Adapter\Swoole\Response as SwooleResponse; use Utopia\Validator\Boolean; @@ -57,9 +58,9 @@ class XList extends AttributesXList ->callback($this->action(...)); } - public function action(string $databaseId, string $tableId, array $queries, bool $includeTotal, UtopiaResponse $response, Database $dbForProject): void + public function action(string $databaseId, string $tableId, array $queries, bool $includeTotal, UtopiaResponse $response, Database $dbForProject, Authorization $authorization): void { // Call parent action with tableId as collectionId since they refer to the same resource - parent::action($databaseId, $tableId, $queries, $includeTotal, $response, $dbForProject); + parent::action($databaseId, $tableId, $queries, $includeTotal, $response, $dbForProject, $authorization); } }