diff --git a/app/assets/dbip/dbip-country-lite-2024-09.mmdb b/app/assets/dbip/dbip-country-lite-2024-09.mmdb deleted file mode 100644 index 43d6bcdeea..0000000000 Binary files a/app/assets/dbip/dbip-country-lite-2024-09.mmdb and /dev/null differ diff --git a/app/assets/dbip/dbip-country-lite-2025-12.mmdb b/app/assets/dbip/dbip-country-lite-2025-12.mmdb new file mode 100644 index 0000000000..4ecabbf735 Binary files /dev/null and b/app/assets/dbip/dbip-country-lite-2025-12.mmdb differ diff --git a/app/controllers/api/vcs.php b/app/controllers/api/vcs.php index 01a0817b55..c424e6884f 100644 --- a/app/controllers/api/vcs.php +++ b/app/controllers/api/vcs.php @@ -1796,7 +1796,8 @@ App::patch('/v1/vcs/github/installations/:installationId/repositories/:repositor throw new Exception(Exception::INSTALLATION_NOT_FOUND); } - $repository = Authorization::skip(fn () => $dbForPlatform->getDocument('repositories', $repositoryId, [ + $repository = Authorization::skip(fn () => $dbForPlatform->findOne('repositories', [ + Query::equal('$id', [$repositoryId]), Query::equal('projectInternalId', [$project->getSequence()]) ])); diff --git a/app/init/registers.php b/app/init/registers.php index aecc34740a..be2009449e 100644 --- a/app/init/registers.php +++ b/app/init/registers.php @@ -372,7 +372,7 @@ $register->set('smtp', function () { return $mail; }); $register->set('geodb', function () { - return new Reader(__DIR__ . '/../assets/dbip/dbip-country-lite-2024-09.mmdb'); + return new Reader(__DIR__ . '/../assets/dbip/dbip-country-lite-2025-12.mmdb'); }); $register->set('passwordsDictionary', function () { $content = \file_get_contents(__DIR__ . '/../assets/security/10k-common-passwords'); diff --git a/tests/e2e/Services/Account/AccountBase.php b/tests/e2e/Services/Account/AccountBase.php index 9f35932700..b217608395 100644 --- a/tests/e2e/Services/Account/AccountBase.php +++ b/tests/e2e/Services/Account/AccountBase.php @@ -55,7 +55,7 @@ trait AccountBase 'origin' => 'http://localhost', 'content-type' => 'application/json', 'x-appwrite-project' => 'console', - 'x-forwarded-for' => '103.152.127.250' // Test IP for denied access region + 'x-forwarded-for' => '31.6.14.220' // Test IP for denied access region ]), [ 'userId' => ID::unique(), 'email' => $email,