mirror of
https://github.com/zulip/zulip.git
synced 2025-11-08 16:01:58 +00:00
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.
64 KiB
64 KiB