-
Bug
-
Resolution: Unresolved
-
Major
-
None
A text file can be defined in the "Custom Build Messages" section of the Gerrit Trigger plugin, whose content is provided to Gerrit as an error message. The content of this file is, however, not escaped correctly, and can cause failures when the gerrit-review command is executed.
Specifically, single quotes are not escaped. As an example, use the following text as part of the message file (the dashed lines delimit the file, but are not part of it):
--------------------------------
test
this ' is ' a ' test
test
--------------------------------
The gerrit-review command will fail because the content of the second line will be provided to Gerrit as separate parameters.