)]}'
{
  "commit": "365e84880e20727465eaf82a46d98fd274e0f4cf",
  "tree": "e6a5e89b5d9f27f45873ac21e5608d7e2ab9d83f",
  "parents": [
    "92a663cee10b51fce3c93624ec97499d38a8ada7"
  ],
  "author": {
    "name": "Alon Bar-Lev",
    "email": "alon.barlev@gmail.com",
    "time": "Tue Jul 26 13:35:13 2022 +0300"
  },
  "committer": {
    "name": "Alon Bar-Lev",
    "email": "alon.barlev@gmail.com",
    "time": "Tue Jul 26 16:00:31 2022 +0300"
  },
  "message": "Do not fail if user is missing username attribute\n\nThe serviceuser plugin provides a commit validator that checking each\npushed commit, whether the committer is a serviceuser.\n\nIf the validation fails the push fails, even if the user is no\nserviceuser.\n\nBacktrace:\n\n  [SSH git-receive-pack xxx] WARN  com.google.gerrit.server.git.\n  MultiProgressMonitor : MultiProgressMonitor worker did not call end()\n  before returning\n  [SSH git-receive-pack xxx] ERROR com.google.gerrit.server.git.receive.\n  AsyncReceiveCommits : error while processing push\n  java.util.concurrent.ExecutionException: java.util.NoSuchElementException:\n  No value present\n\n  Caused by: java.util.NoSuchElementException: No value present\n          at java.base/java.util.Optional.get(Optional.java:148)\n          at com.googlesource.gerrit.plugins.serviceuser.GetServiceUser.\n             apply(GetServiceUser.java:61)\n          at com.googlesource.gerrit.plugins.serviceuser.ServiceUserResolver.\n             getAsServiceUser(ServiceUserResolver.java:91)\n          at com.googlesource.gerrit.plugins.serviceuser.ValidateServiceUserCommits.\n             onCommitReceived(ValidateServiceUserCommits.java:52)\n\nUsers without username attribute are valid in case of OAuth and other\nproviders until user once set them.\n\nThis change ignores users that are missing username attribute.\n\nChange-Id: I505edc7689ab0e9bd8adee42508badf9bdcec867\nSigned-off-by: Alon Bar-Lev \u003calon.barlev@gmail.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "784c6b022c05ec399067206f6e969efa911e32b3",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/serviceuser/GetServiceUser.java",
      "new_id": "f0b92dd7f1911bd0f876f40f755dc6c1b73833e2",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/serviceuser/GetServiceUser.java"
    }
  ]
}
