Admin console permits negative attachment size
Summary: The admin page permitted me to inadvertently set a negative value for maximum attachment size.
Steps to Reproduce: Go to admin page (/admin/application_settings). Change maximum attachment size to -10
. Save. Then, try to make a comment on a merge request. It will fail with a 500.
Expected behavior: Page-level validation error saying that negative values for maximum attachment size are not allowed.
Observed behavior: Save of settings worked. Subsequently, it was not possible to make comments on merge requests.
GitLab 8.0 - d70c051d