Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66916

REST API does not support UTF-8

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • gerrit-trigger-plugin
    • None
    • Jenkins 2.289.3
      Gerrit-Trigger-Plugin 2.35.2
      Gerrit Server 3.3.2

      We just tried to use the REST API to support the missed events feature, but stumbled into the problem, that all the messages delivered now via REST API are incorrectly encoded in some way.

      Example: In the Build Started message we have:

      gerrit review <CHANGE>,<PATCHSET> --message '⚫️ Build Started <BUILDURL> <STARTED_STATS>' --verified <VERIFIED> --code-review <CODE_REVIEW>

      However, when this message is posted to gerrit, it appears as:

      ?? Build Started https://.....

      When I post the message myself using postman, the bullet appears correctly. So it seems to me that the REST Request is not encoding correctly or explicitly uses latin1 or some other charset that doesn't support this glyph.

            rsandell rsandell
            seldor Matthias Keller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: