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

REST API does not support UTF-8

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: gerrit-trigger-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.289.3
      Gerrit-Trigger-Plugin 2.35.2
      Gerrit Server 3.3.2
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

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

              Dates

              Created:
              Updated: