zulip/zerver/lib/bugdown
Tim Abbott 77addc5456 bugdown: Fix handling of ultra-long renderings.
If some bug in Bugdown results in a rendered message content that is
bigger than twice the message size, we now just throw an exception
from Bugdown.  This is considerably better than the old behavior,
which might result in an enormous message being placed in the database
(potentially, bigger than the 1MB limit to store in memcached), which
would in turn result in tragic consequences.

This fixes #8322, in that it prevents the super bad outcome seen there
(where basically Zulip became unusable for everyone on the stream
where the message is posted).  Now, the failure mode is just the
message failing to send.  Still not ideal (and requires further work
on the URL embed feature), but not a minor problem, not a major one.
2018-02-09 10:57:55 -08:00
..
__init__.py bugdown: Fix handling of ultra-long renderings. 2018-02-09 10:57:55 -08:00
api_arguments_table_generator.py api docs: Generate Arguments table from JSON. 2017-12-29 17:03:36 -05:00
api_code_examples.py bugdown/api_code_examples: Support multiple fixtures per doc. 2018-02-07 15:58:57 -08:00
fenced_code.py zerver/lib: Remove u prefix from strings. 2018-02-05 12:12:58 -08:00
testing_mocks.py zerver/lib: Use python 3 syntax for typing. 2017-11-21 20:56:40 -08:00
tlds-alpha-by-domain.txt [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00