)]}'
{
  "commit": "bbc608bf84432ee302f4b48f9715f83050b94304",
  "tree": "9b3b36dd8e84bfd36f0fd90714ce6b98165afb0c",
  "parents": [
    "58ca56eb6d0feef165b6c415df3221a1aaa76ce0"
  ],
  "author": {
    "name": "David Ostrovsky",
    "email": "david@ostrovsky.org",
    "time": "Thu Sep 24 17:26:58 2026 +0200"
  },
  "committer": {
    "name": "David Ostrovsky",
    "email": "david@ostrovsky.org",
    "time": "Thu Sep 24 17:56:10 2026 +0200"
  },
  "message": "Keep login redirect URI percent-encoded to avoid ambiguous //\n\nSamlWebFilter decoded the requested URI before storing it as the SAML\nRelayState. For a deep-link login such as /login/%2Fc%2F\u003cchange\u003e,\ndecoding produced /login//c/\u003cchange\u003e. Gerrit 3.13 (Jetty 10) tolerated\nthe empty path segment, but Gerrit 3.14 (Jetty 12) rejects it with\n\"Ambiguous URI empty segment\" (HTTP 400) on the post-authentication\ncallback redirect.\n\nStore the requested URI without decoding so the RelayState round-trips\nas /login/%2Fc%2F\u003cchange\u003e and Gerrit\u0027s /login servlet decodes the token\nexactly once, redirecting to the originally requested change.\n\nAdd a unit test asserting the deep-link login URI stays percent-encoded\nand never collapses to /login//...\n\nBug: Issue 565496827\nChange-Id: Id6b2b624ed34b4d9a0a7888b31a2f92693a1cea7\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "06db6932a2d6e7c3f451af630a6a7c0f3f303dda",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/saml/SamlWebFilter.java",
      "new_id": "22dfa01c41c4e1a77ad589aaea5c8cf6de9cf89b",
      "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": "8e0a11bfdb2e5f0597f9e53617ded29bf87b127d",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/saml/SamlWebFilterTest.java"
    }
  ]
}
