)]}'
{
  "commit": "5febf67aa4897d2c45a514e254db165c7181f6e8",
  "tree": "8ea7e34425f548c39c9275d713cd0fc76aff2ad7",
  "parents": [
    "c2c92ddba840997cbdbb82e1764c8674894b4756"
  ],
  "author": {
    "name": "Darius Jokilehto",
    "email": "dariusjokilehto+os@gmail.com",
    "time": "Fri Aug 18 14:35:12 2023 +0200"
  },
  "committer": {
    "name": "Darius Jokilehto",
    "email": "dariusjokilehto+os@gmail.com",
    "time": "Tue Sep 05 14:28:03 2023 +0100"
  },
  "message": "Support display names with non-ISO-8859-1 characters\n\nThe SAML plugin relied on request headers to pass the display name to\nGerrit. This was problematic as Gerrit follows RFC-7230\u0027s recommendation\n[1] of using ISO-8859-1 characters - ideally US-ASCII only. This worked\nuntil change 94918 enforced ISO-8859-1 encoding in the display name\nheader, and unintentionally (presumably, as there are no tests) also\nbroke characters that are present but have different encodings in\nISO-8859-1 and UTF-8 (a bug report was raised for this [2]).\n\nThis change implements Luca\u0027s suggestion [3] not to use headers at all,\nbut instead make a call via Gerrit\u0027s API once the user has been\nauthenticated. This happens after login and circumvents the issue around\nheader charsets.\n\n[1] https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4\n[2] https://issues.gerritcodereview.com/issues/296001714\n[3] https://gerrit-review.googlesource.com/c/plugins/saml/+/369676/comments/2da3a9f3_1f3c9af3\n\nBug: Issue 40012596\nChange-Id: I321cb9d17d8013a042ea7a4822a606dde8329303\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3454255bfea8399da13f4d7f90e1bd84c7ce11f6",
      "old_mode": 33188,
      "old_path": "BUILD",
      "new_id": "00a847de2f9d902867f89615ea71924263386d90",
      "new_mode": 33188,
      "new_path": "BUILD"
    },
    {
      "type": "modify",
      "old_id": "a58ef8a01e30947ea2b5ba246fd4d38f39d696d6",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/saml/SamlWebFilter.java",
      "new_id": "5b5c969411cd9a3fa8a43595780dc12259b30920",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/saml/SamlWebFilter.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "98aa3b6ad2750abbca669ca99d1ad6e3ed64fade",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/saml/SamlWebFilterIT.java"
    }
  ]
}
