zulip/zerver/openapi
Prakhar Pratyush 3f875be21b user_topics: Validate 'topic' parameter length <= max_topic_length.
Earlier, 'topic' parameter length for
'/users/me/subscriptions/muted_topics' and '/user_topics' endpoints
were not validated before DB operations which resulted in exception:
'DataError: value too long for type character varying(60)'.

This commit adds validation for the topic name length to be
capped at 'max_topic_length' characters.

The doc is updated to suggest clients that the topic name should
have a maximum length of 'max_topic_length'.

Fixes #27796.

(cherry picked from commit c4330be2b1)
2024-01-05 10:32:54 -05:00
..
__init__.py openapi: Add missing __init__.py; fix type errors hidden by its absence. 2021-07-05 12:20:39 -07:00
curl_param_value_generators.py models: Extract zerver.models.realms. 2024-01-05 10:32:54 -05:00
javascript_examples.js message-type: Add support for "direct" as value for type parameter. 2023-04-18 12:29:33 -07:00
javascript_examples.py python: Replace universal_newlines with text. 2022-01-23 22:16:01 -08:00
markdown_extension.py mypy: Enable new error explicit-override. 2023-10-12 12:28:41 -07:00
openapi.py openapi: Remove unnecessary cast. 2023-11-15 17:10:48 -08:00
python_examples.py models: Extract zerver.models.realms. 2024-01-05 10:32:54 -05:00
test_curl_examples.py models: Extract zerver.models.realms. 2024-01-05 10:32:54 -05:00
testing.yaml test_openapi: Make testing.yml a full conformant specification. 2022-01-13 14:34:11 -08:00
zulip.yaml user_topics: Validate 'topic' parameter length <= max_topic_length. 2024-01-05 10:32:54 -05:00