browsertrix/backend/btrixcloud
Ilya Kreymer 4591db1afe
More stringent UUID types for user input / avoid 500 errors (#1309)
Fixes #1297 
Ensures proper typing for UUIDs in FastAPI input models, to avoid
explicit conversions, which may throw errors.
This avoids possible 500 errors (due to ValueError exceptions) when
converting UUIDs from user input.
Instead, will get more 422 errors from FastAPI. 

UUID conversions remaining are in operator / profile handling where
UUIDs are retrieved from previously set fields, remaining user input
conversions in user auth and collection list are wrapped in exceptions.

For `profileid`, update fastapi models to support union of UUID, null,
and EmptyStr (new empty string only type), to differentiate removing
profile (empty string) vs not changing at all (null) for config updates
2023-10-25 15:15:53 -04:00
..
migrations User refactor + remove fastapi_users dependency + update fastapi (#1290) 2023-10-18 10:49:23 -07:00
templates Track pod resource usage, detect OOM crashes, handle auto-scaling (#1235) 2023-10-05 20:41:18 -07:00
__init__.py
auth.py More stringent UUID types for user input / avoid 500 errors (#1309) 2023-10-25 15:15:53 -04:00
basecrawls.py Provide full resources in archived items finished webhooks (#1308) 2023-10-23 19:01:58 -07:00
colls.py Storage Ops Refactor (#1257) 2023-10-10 15:04:23 -07:00
crawlconfigs.py More stringent UUID types for user input / avoid 500 errors (#1309) 2023-10-25 15:15:53 -04:00
crawlmanager.py More stringent UUID types for user input / avoid 500 errors (#1309) 2023-10-25 15:15:53 -04:00
crawls.py User refactor + remove fastapi_users dependency + update fastapi (#1290) 2023-10-18 10:49:23 -07:00
db.py User refactor + remove fastapi_users dependency + update fastapi (#1290) 2023-10-18 10:49:23 -07:00
emailsender.py feat: use is_bool to check EMAIL_SMTP_USE_TLS (#1231) 2023-10-02 21:29:36 -07:00
invites.py User refactor + remove fastapi_users dependency + update fastapi (#1290) 2023-10-18 10:49:23 -07:00
k8sapi.py Track pod resource usage, detect OOM crashes, handle auto-scaling (#1235) 2023-10-05 20:41:18 -07:00
main_op.py Update user names in crawls and workflows after username update (#1299) 2023-10-19 23:34:49 -07:00
main.py Update user names in crawls and workflows after username update (#1299) 2023-10-19 23:34:49 -07:00
models.py More stringent UUID types for user input / avoid 500 errors (#1309) 2023-10-25 15:15:53 -04:00
operator.py User refactor + remove fastapi_users dependency + update fastapi (#1290) 2023-10-18 10:49:23 -07:00
orgs.py More stringent UUID types for user input / avoid 500 errors (#1309) 2023-10-25 15:15:53 -04:00
pagination.py
profiles.py More stringent UUID types for user input / avoid 500 errors (#1309) 2023-10-25 15:15:53 -04:00
storages.py Storage ops followup type checking (#1274) 2023-10-11 14:03:00 -07:00
uploads.py More stringent UUID types for user input / avoid 500 errors (#1309) 2023-10-25 15:15:53 -04:00
users.py More stringent UUID types for user input / avoid 500 errors (#1309) 2023-10-25 15:15:53 -04:00
utils.py Add slugs to org backend (#1250) 2023-10-10 18:30:09 -07:00
version.py version: update to 1.8.0-beta.0 2023-10-17 18:06:55 -07:00
webhooks.py Provide full resources in archived items finished webhooks (#1308) 2023-10-23 19:01:58 -07:00
zip.py Fix: Stream log downloading from WACZ (#1225) 2023-09-28 18:54:52 -07:00