List of steps to reproduce (step by step, including full links if applicable):
- Upload a file with Gerrit Patch Uploader
- using the Gerrit Web interface, attempt to edit the uploaded file OR attempt to upload a second file to the same subject
What happens?:
Edit or upload fails with message:
An error occurred Error 502 (Bad Gateway): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>502 Bad Gateway</title> </head><body> <h1>Bad Gateway</h1> <p>The proxy server received an invalid response from an upstream server.<br /> </p> </body></html> Endpoint: /changes/*~*/edit/*
What should have happened instead?:
The edit or upload should have completed successfully
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
Patch in question here, related to T151682
I was unable to upload languages/i18n/en.json nor languages/i18n/qqq.json, attempted changes described in T151682#7303345. I also tried to edit the uploaded file to replace:
!$this->getTitle()->isSpecialPage()
with
$this->getTitle()->canExist()
The change would ensure the new message would not show on nonexistent pages. The edit failed with the same 502 error.
Discussion also started here