Damodar Lohani
196c76ac70
fix: map deprecated platform types in read endpoints for backwards compatibility
...
Old platform types stored in the database (e.g. flutter-web, apple-ios,
react-native-android) are now mapped to the new consolidated types (web,
apple, android, windows, linux) before being sent in API responses. This
ensures the response models' $conditions correctly select the right model
for each platform document.
Adds Platform::mapDeprecatedType() as a reusable static method and applies
the mapping in both Get and XList platform endpoints.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 07:47:42 +00:00
Damodar Lohani
db18caf739
fix: add backwards-compatible origin validation for deprecated platform types
...
Platform::getHostnames() and Platform::getSchemes() only handled the new
consolidated type names, causing "invalid origin" errors for projects still
using old granular types (flutter-*, apple-*, react-native-*, unity) stored
in the database. Add switch fall-through cases for all deprecated type values
and a V24 migration to convert old types to their new equivalents.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 07:31:58 +00:00
Matej Bačo
331fcee710
Merge branch '1.9.x' into feat-public-platform-api
2026-04-07 10:43:11 +02:00
Chirag Aggarwal
eb366cf94b
fix: preserve cors max age type
2026-04-02 08:25:59 +05:30
Chirag Aggarwal
33f8e35b62
chore: remove phpstan baseline
2026-04-01 23:01:11 +05:30
Matej Bačo
644840ec66
Refactor to new platforms interfaces
2026-03-27 13:45:58 +01:00
Matej Bačo
d3c5a425e7
Implement public platform API
2026-03-23 15:46:11 +01:00
Matej Bačo
875637bf35
Merge pull request #11533 from appwrite/feat-user-impersonation
...
Add impersonation feature for user management
2026-03-20 16:13:51 +01:00
eldadfux
e8c0ab0cc1
Fixed email validator
2026-03-19 22:44:04 +01:00
copilot-swe-agent[bot]
b79132556c
feat: add support for tauri://localhost as an allowed origin
...
Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com>
2026-03-19 20:14:24 +00:00
Chirag Aggarwal
1a966741f4
(fix): Fix TypeError in Origin validator when array is passed
...
Move type check before assignment to prevent TypeError when non-string
value (like array) is passed to Origin::isValid(). The property
\$this->origin is typed as string, so assigning an array before
the is_string() check caused the error.
2026-02-11 18:01:18 +05:30
Matej Bačo
36c87d109a
Fix rule oauth flow
2026-02-09 13:45:18 +01:00
Hemachandar
5ae148f026
Add logs to rules
2025-12-16 10:59:16 +05:30
loks0n
da0b2a7517
fix: cors wildcard
2025-12-14 22:41:15 +00:00
loks0n
f765eb92e7
feat: cors service
2025-12-11 09:01:31 +00:00
loks0n
b42cc11eba
feat: bump utopia dns
2025-11-04 10:56:34 +00:00
Matej Bačo
aa837c7b43
PR review fixes
2025-08-06 11:43:07 +02:00
Matej Bačo
3541fcb237
Fix manual QA edge case
2025-08-06 11:30:56 +02:00
Matej Bačo
10a7f8acfe
Formatting fix
2025-08-06 11:06:35 +02:00
Matej Bačo
61ec98bc5e
Improve tests
2025-08-06 11:06:18 +02:00
Matej Bačo
2d4e99cb1a
Revert revert of CAA validation
2025-08-05 13:44:06 +02:00
Matej Bačo
8fe999d6d7
Merge branch '1.7.x' into feat-check-CAA-in-DNS
2025-08-05 13:43:17 +02:00
Matej Bačo
dade82706a
Fix caa records inheritance
2025-08-05 13:38:56 +02:00
Matej Bačo
9c320f9c71
Revert "Check CAA record before issuing certificate"
2025-08-05 10:23:39 +02:00
Matej Bačo
7f690a1048
Simplify implementation
2025-08-04 16:51:49 +02:00
Matej Bačo
5e294d0849
Support empty CAA records
2025-08-04 15:35:40 +02:00
Matej Bačo
2a63de0c46
Improve docs
2025-08-04 14:57:35 +02:00
Matej Bačo
48a977526e
Fix tests
2025-08-04 14:53:13 +02:00
Matej Bačo
4cafd2e07d
Improve PR quality
2025-08-04 14:28:50 +02:00
Khushboo Verma
783894a82b
Add default value
2025-08-04 01:40:39 +05:30
Khushboo Verma
484ebb5059
Check CAA record in DNSTest
2025-08-04 00:42:00 +05:30
Chirag Aggarwal
7fecfc73ca
fix: formatting
2025-07-19 10:39:39 +05:30
Chirag Aggarwal
c55f039f13
chore: add unit test
2025-07-18 22:23:33 +05:30
Chirag Aggarwal
d613237fb4
chore: improve invalid scheme error in origin check
2025-07-18 22:08:43 +05:30
Chirag Aggarwal
5fffae39d4
chore: update naming and add tests
2025-07-05 17:59:01 +05:30
Chirag Aggarwal
9dcb80649f
fix: extension for safari
2025-07-05 10:18:40 +05:30
Chirag Aggarwal
18d30c48d5
fix: add missing check for hostname
2025-07-05 10:15:18 +05:30
Chirag Aggarwal
0fb55f6312
fix: origin validation for web extensions
2025-07-05 07:59:52 +05:30
Chirag Aggarwal
bc8b10a69e
fix: origin tests
2025-07-04 16:46:14 +05:30
Chirag Aggarwal
72f08e281b
chore: make check consistent
2025-07-03 22:39:12 +05:30
Chirag Aggarwal
431a26e151
chore: removing loggin
2025-07-03 22:37:31 +05:30
Chirag Aggarwal
172ba84ec8
chore: add logging
2025-07-03 22:25:46 +05:30
Chirag Aggarwal
b6f11144b8
chore: popular schemes
2025-07-03 21:39:23 +05:30
Chirag Aggarwal
4747700eae
chore: add logging
2025-07-03 21:17:43 +05:30
Chirag Aggarwal
bb9a271fa8
chore: add scheme validation
2025-07-03 16:39:41 +05:30
Chirag Aggarwal
f62c3135df
add null check for platform
2025-07-03 16:26:56 +05:30
Chirag Aggarwal
fffdab23f9
chore: update scheme check
2025-06-27 08:29:13 +05:30
Chirag Aggarwal
1555abcbd6
chore: use lowercase for check
2025-06-26 19:59:58 +05:30
Chirag Aggarwal
f8e74d073a
chore: fix scheme check, remove logging
2025-06-26 19:48:57 +05:30
Chirag Aggarwal
be40f1cbe3
chore: remove check for scheme
2025-06-26 19:44:41 +05:30