zulip/zerver
Alex Vandiver f8a16fb9af model: Handle parsed user-agents longer than 30 characters.
The Client.name field is only 30 characters long, but there is no
limit to the length of parsed User-Agent value which we may attempt to
store in it.  This can cause requests with long user-agents to 500
when the creation of the Client row fails.

Truncate the name at 30 characters for the cache key, and passing
`name` to `get_or_create`.
2023-02-14 14:58:15 -08:00
..
actions message_send: Extract out stream notification user-set calculation logic. 2023-02-10 22:47:30 -08:00
data_import black: Reformat with Black 23. 2023-02-02 10:40:13 -08:00
integration_fixtures/nagios
lib settings: Allow customization of STATIC_URL. 2023-02-14 17:17:06 -05:00
management ruff: Fix PIE810 Call `startswith` once with a `tuple`. 2023-02-08 16:40:35 -08:00
migrations settings: Remove realm-level email_address_visibility setting. 2023-02-10 17:40:33 -08:00
openapi help: Update URL references to new "Configure email visibility" page. 2023-02-10 18:15:56 -08:00
tests model: Handle parsed user-agents longer than 30 characters. 2023-02-14 14:58:15 -08:00
tornado black: Reformat with Black 23. 2023-02-02 10:40:13 -08:00
views settings: Remove realm-level email_address_visibility setting. 2023-02-10 17:40:33 -08:00
webhooks ruff: Fix PIE810 Call `startswith` once with a `tuple`. 2023-02-08 16:40:35 -08:00
worker deferred_work: Log at start of the work. 2023-02-09 12:06:38 -08:00
__init__.py
apps.py sentry: Initialize sentry in AppConfig ready hook. 2022-09-26 12:42:36 -07:00
context_processors.py ruff: Fix RSE102 Unnecessary parentheses on raised exception. 2023-02-04 16:34:55 -08:00
decorator.py ruff: Fix RSE102 Unnecessary parentheses on raised exception. 2023-02-04 16:34:55 -08:00
filters.py
forms.py ruff: Fix SIM105 Use `contextlib.suppress` instead of try-except-pass. 2023-01-23 11:18:36 -08:00
logging_handlers.py python: Use Python 3.8 typing.{Protocol,TypedDict}. 2022-04-27 12:57:49 -07:00
middleware.py ruff: Fix PIE810 Call `startswith` once with a `tuple`. 2023-02-08 16:40:35 -08:00
models.py model: Handle parsed user-agents longer than 30 characters. 2023-02-14 14:58:15 -08:00
signals.py requirements: Upgrade to Django 4.0. 2022-07-13 16:07:17 -07:00