Commit Graph

5771 Commits

Author SHA1 Message Date
Steven Nguyen 4ace8ed027 Replace catching \Exception with \Throwable
\Exception doesn't work as a catch-all because not everything extends
\Exception. For example, there was a problem where the messaging worker
didn't catch an exception here:

} catch (\Exception $e) {
    $deliveryErrors[] = 'Failed sending to targets ' . $batchIndex + 1 . '-' . \count($batch) . ' with error: ' . $e->getMessage();
} finally {

As such, $deliveryErrors stayed as an empty array. In this case, the
$adapter->send() threw a TypeError which extends Error which implements
Throwable. Updating the catch to catch \Throwable ensures the error is
caught and $deliveryErrors gets updated.
2024-02-08 01:17:54 +00:00
Matej Bačo abb1007385 Rework project creation 2024-02-07 12:04:46 +01:00
Jake Barnby 66a38898eb Fix message status values and enums 2024-02-07 23:50:05 +13:00
Matej Bačo a89b73d20b Fix bug 2024-02-07 10:48:02 +01:00
Matej Bačo d5216d5b14 Linter fix 2024-02-07 10:17:34 +01:00
Matej Bačo 939aec866e Add getProxyProjectDatabase hook 2024-02-07 10:16:17 +01:00
Jake Barnby 7014b2c2cd Fix user API mfa route auth 2024-02-07 18:08:51 +13:00
Bradley Schofield 559fa924c0 Merge branch '1.5.x' into 1.5.x-response-request-models 2024-02-06 17:10:43 +00:00
Matej Bačo a7e95588c6 Fix bug on ZDT 2024-02-06 16:08:42 +01:00
Matej Bačo 8154b4c131 Linter fix 2024-02-06 12:11:27 +01:00
Matej Bačo d4afe22396 Add ZDT migration support to project creation 2024-02-06 12:07:47 +01:00
Khushboo Verma fb127270ce Add test for empty domain 2024-02-06 16:04:58 +05:30
Khushboo Verma 11ceeff5ca Add health certificate validity endpoint 2024-02-06 15:15:03 +05:30
Jake Barnby 0a72b37b3e Fix session response model 2024-02-06 02:17:04 +13:00
Matej Bačo 25f8702429 Fix formatting 2024-02-05 10:40:53 +00:00
Matej Bačo 7beb9080fa Merge remote-tracking branch 'origin/1.5.x' into fix-empty-user-updates 2024-02-05 10:38:48 +00:00
Khushboo Verma e8523e38f7 Merge branch '1.5.x' into feat-block-countries 2024-02-05 13:26:52 +05:30
Jake Barnby 15f433794f Add missing enum cases 2024-02-05 20:25:34 +13:00
shimon 6a6c3445fa updates 2024-02-04 20:02:01 +02:00
shimon a63977455f Merge branch '1.5.x' of github.com:appwrite/appwrite into 1.5.x-response-request-models
 Conflicts:
	.gitmodules
2024-02-04 09:27:08 +02:00
Jake Barnby bb9947bfd3 Remove invalid injection 2024-02-04 04:15:16 +13:00
Jake Barnby 68931c8672 Merge pull request #7538 from appwrite/fix-spec-generation
Fix spec generation
2024-02-03 04:04:00 +13:00
Jake Barnby f14c0cc0aa Merge remote-tracking branch 'origin/1.5.x' into fix-spec-generation
# Conflicts:
#	app/config/specs/open-api3-latest-client.json
#	app/config/specs/open-api3-latest-console.json
#	app/config/specs/open-api3-latest-server.json
#	app/config/specs/swagger2-latest-client.json
#	app/config/specs/swagger2-latest-console.json
#	app/config/specs/swagger2-latest-server.json
2024-02-03 03:35:14 +13:00
Jake Barnby 3816870e19 Fix duplicate routes 2024-02-03 03:26:04 +13:00
Jake Barnby 874e483fb5 Trigger delete of targets associated with sessions when sessions are deleted 2024-02-03 03:06:36 +13:00
Khushboo Verma 7b4f334f31 Update error message 2024-02-02 19:30:54 +05:30
Torsten Dittmann b462eee183 chore: run formatter 2024-02-02 13:50:41 +01:00
Torsten Dittmann a77526cab1 fix: backup codes 2024-02-02 13:50:18 +01:00
Torsten Dittmann db321db0fb fix: code review 2024-02-02 13:42:15 +01:00
Torsten Dittmann 75fc59931a Merge branch '1.5.x' of https://github.com/appwrite/appwrite into feat-mfa 2024-02-02 13:30:11 +01:00
Jake Barnby 0e8e455903 Fix spec generation 2024-02-02 23:54:34 +13:00
Jake Barnby df3042dc55 Merge pull request #7536 from appwrite/fix-invalid-usage-labels
Remove redundant usage labels
2024-02-02 22:21:20 +13:00
Khushboo Verma d96d84201e Add auth group to create email token endpoint 2024-02-02 14:03:20 +05:30
Jake Barnby 499f0a53ea Update to standard namespacing for enums 2024-02-02 17:53:19 +13:00
Jake Barnby d1bad7c3cd Remove redundant usage labels 2024-02-02 17:16:31 +13:00
shimon a254bb7edb Merge branch '1.5.x' of github.com:appwrite/appwrite into 1.5.x-response-request-models 2024-02-01 17:13:38 +02:00
Eldad A. Fux 321a998947 Merge pull request #7533 from appwrite/feat-rename-security-phrases
Feat: Rename security phrases
2024-02-01 15:45:15 +01:00
Matej Bačo ef3f7878dc PR review changes 2024-02-01 14:13:30 +00:00
Torsten Dittmann ceb868c9d7 Merge branch '1.5.x' of https://github.com/appwrite/appwrite into feat-mfa 2024-02-01 11:57:32 +01:00
loks0n 5e26f01ecd chore: fix account get ssr 2024-02-01 10:41:41 +00:00
Matej Bačo a47a4240ed Rename security phrases 2024-02-01 10:41:01 +00:00
shimon 350d72eb1f updates 2024-02-01 12:21:50 +02:00
loks0n d84cfab244 feat: remove users.createSession 2024-02-01 10:21:38 +00:00
Jake Barnby 21f0ce5b82 Set port, username and password to defaults if not provided 2024-02-01 17:45:41 +13:00
Jake Barnby a6b5734884 Fix encryption type options 2024-02-01 17:44:42 +13:00
Jake Barnby acc7131c95 Remove redundant key existence check 2024-02-01 17:42:19 +13:00
Jake Barnby 19fdc193b6 Fix credential enabled check 2024-02-01 17:41:24 +13:00
Jake Barnby d275d36a0b Fix param order 2024-02-01 02:33:14 +13:00
Jake Barnby e4194c690f Merge remote-tracking branch 'origin/1.5.x' into feat-smtp-provider
# Conflicts:
#	composer.lock
2024-02-01 01:50:36 +13:00
Jake Barnby 49a753509b Merge pull request #7067 from appwrite/feat-php-8-1
Upgrade to PHP 8.2
2024-02-01 01:47:57 +13:00