)]}'
{
  "commit": "8984e1f663b5b58f74cd0381043133f0059e004d",
  "tree": "1b2826e352f46e10a6e0676316f564ef4a2b1471",
  "parents": [
    "8f7ef245f0c156730ef74ff3fe838c330728fc7f"
  ],
  "author": {
    "name": "Sven Selberg",
    "email": "sven.selberg@axis.com",
    "time": "Tue Apr 12 11:36:58 2022 +0200"
  },
  "committer": {
    "name": "Matthias Sohn",
    "email": "matthias.sohn@sap.com",
    "time": "Mon May 09 22:06:38 2022 +0200"
  },
  "message": "HTTP Smart: set correct HTTP status on error\n\nPrevious behavior was that status code was automatically set to 200\nregardless of reported status and according to HTTP Smart protocol[1]:\n\n  If there is no repository at $GIT_URL, or the resource pointed to by\n  a location matching $GIT_URL does not exist, the server MUST NOT\n  respond with 200 OK response. A server SHOULD respond with\n  404 Not Found, 410 Gone, or any other suitable HTTP status code which\n  does not imply the resource exists as requested.\n\nSince the jgit HTTP client isn\u0027t able to handle reading content from a\nresponse reporting an error (calling HttpURLConnection#getInputStream\non a \"failed\" connection throws an exception and the internal interface\nHttpConnection does not expose HttpURLConnection#getErrorStream) the\nSmartClientSmartServerTest needed to be rewritten to expect the generic\nresponse messages.\n\n[1] https://git-scm.com/docs/http-protocol#_general_request_processing\n\nBug: 579676\nChange-Id: Ibb942d02124a0bc279df09600b091354019ce064\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "012f9a3dc015e9ef8c2339b149030478e25eddb8",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitSmartHttpTools.java",
      "new_id": "f1155dcf57a9e1e8412b5551aaf7b9b8896e6c1c",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitSmartHttpTools.java"
    },
    {
      "type": "modify",
      "old_id": "77ed09cdfb34b4c8a8c87c26528360791a82d176",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/UploadPackServlet.java",
      "new_id": "d3437b7eb979b616c94d95100715a910d118701b",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/UploadPackServlet.java"
    },
    {
      "type": "modify",
      "old_id": "df093c185bee5519ceb63aa8905fb1eae6521d1d",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java",
      "new_id": "3438c52c8d3cf0b70efc36f29829f5ff9f3e4446",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/HttpClientTests.java"
    },
    {
      "type": "modify",
      "old_id": "887e970a0c61853c3781cc4ba5e4b8bf3489f15a",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/SmartClientSmartServerTest.java",
      "new_id": "8f3888e4d5544679a0b856559c93196d01bf9fb1",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit.http.test/tst/org/eclipse/jgit/http/test/SmartClientSmartServerTest.java"
    }
  ]
}
