1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-15 11:22:40 +01:00
phorge-phorge/src/applications/differential/editor
epriestley 6fb3f857fb Stop the bleeding caused by attaching enormous patches to revision mail
Summary:
Ref T12033. This is a very narrow fix for this issue, but it should fix the major error: don't attach patches if they're bigger than the mail body limit (by default, 512KB).

Specifically, the logs from an install in T12033 show a 112MB patch being attached, and that's the biggest practical problem here.

I'll follow up on the tasks with more nuanced future work.

Test Plan: Enabled `differential.attach-patches`, saw a patch attached to email. Set the byte limit very low, saw patches get thrown away.

Reviewers: chad, amckinley

Reviewed By: amckinley

Maniphest Tasks: T12033

Differential Revision: https://secure.phabricator.com/D18598
2017-09-13 15:32:55 -07:00
..
DifferentialDiffEditor.php Modularize the Diffusion/Differential "Block" Herald actions 2015-08-03 14:33:28 -07:00
DifferentialRevisionEditEngine.php Rename "needReviewerStatus()" into "needReviewers()" 2017-03-20 16:46:16 -07:00
DifferentialTransactionEditor.php Stop the bleeding caused by attaching enormous patches to revision mail 2017-09-13 15:32:55 -07:00