)]}'
{
  "commit": "bfb522f79240f4baf3398952998bded95a804af2",
  "tree": "522aec574663fcab8bf28368ab1a7ab45001e66f",
  "parents": [
    "dc2b67185694c220a95525b6aeb717e663075e3c"
  ],
  "author": {
    "name": "Antonio Barone",
    "email": "syntonyze@gmail.com",
    "time": "Tue Dec 09 12:42:11 2025 +0100"
  },
  "committer": {
    "name": "Antonio Barone",
    "email": "syntonyze@gmail.com",
    "time": "Wed Dec 10 15:43:31 2025 +0100"
  },
  "message": "Use LDAP username in HTTP URLs when gitBasicAuthPolicy\u003dLDAP\n\nWhen Gerrit is configured with `gitBasicAuthPolicy \u003d LDAP`,\nGit-over-HTTP authentication is performed directly against the LDAP\nbackend.\n\nIn this mode, the LDAP login name (not the Gerrit username) is the\ncredential that must be used for HTTP BasicAuth to succeed.\n\nHowever, the download-commands plugin previously embedded the Gerrit\nusername in generated HTTP clone URLs, regardless of authentication\npolicy.\n\nThis change updates `HttpScheme` to select the LDAP login name (the\n`gerrit:` external ID) whenever `gitBasicAuthPolicy` is set to `LDAP`.\nIf no LDAP username exists, or LDAP authentication is not active, the\nexisting behavior is preserved and the Gerrit username continues to be\nused.\n\nThis ensures that download commands always embed a username that can\nactually authenticate under the configured Git-over-HTTP authentication\npolicy.\n\nBug: Issue 466122136\nChange-Id: I267b9ca01045056e540bd928d649321bb6c9ddc1\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "923470dc5ce92c7cdd69c3413851eaecde97618c",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/download/scheme/HttpScheme.java",
      "new_id": "8ef7957761b9b6451d5344e2d2f506d3f9bdf986",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/download/scheme/HttpScheme.java"
    },
    {
      "type": "modify",
      "old_id": "cc10b952ca6b8adc28da861411d3b9552fd87834",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/download/DownloadCommandTest.java",
      "new_id": "aeb7008b67ebe0658488d47cdecd5d8998b0706a",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/download/DownloadCommandTest.java"
    },
    {
      "type": "modify",
      "old_id": "9762ab788d914952aac575ff2ac116542fe46aed",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/download/command/CloneWithCommitMsgHookTest.java",
      "new_id": "26badabd787c1536fc4492a50358100825cb6754",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/download/command/CloneWithCommitMsgHookTest.java"
    }
  ]
}
