Gerrit Trigger plugin does not correctly escape content of file provided as "Unsuccessful Message File"

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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.

            Assignee:
            rsandell
            Reporter:
            Marco Leogrande
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: