)]}' { "commit": "996513a582615b0932bd75d7994899c110a618fb", "tree": "9184cc3b98c9367711396e344aa7e78bfd2cf79e", "parents": [ "46666b0a3c16d08688a71980dca1eda28302be39" ], "author": { "name": "Mark Bekhet", "email": "mark.bekhet@ericsson.com", "time": "Fri Aug 13 08:07:22 2021 -0400" }, "committer": { "name": "Mark Bekhet", "email": "mark.bekhet@ericsson.com", "time": "Wed Aug 18 12:42:03 2021 -0400" }, "message": "ContentTypeUtil: Add singleton scope\n\nBefore this change, migrating repositories like [1], which has a lot of\nrefs, to Gerrit caused a timeout and the push wasn\u0027t successful. Classes\ninjecting ContentTypeUtil, InvalidLineEndingValidator,\nContentTypeValidator and BlockedKeywordValidator were trying to\nintialize the ContentTypeValidator class a lot of time causing an\ninfinite loop. This loop is probably trying to load the cache\nconsentatly\n\nThis change adds the singleton scope to initialize the class one time\nonly preventing the infinite loop.\n\n[1] https://github.com/angular/angular.git\n\nBug: Issue 14784\nChange-Id: Ic5bb8eaebf72a7346ebe2514fb01e62118368c23\n", "tree_diff": [ { "type": "modify", "old_id": "bb6f9db577f23dedf2c64cf32f0a5133c306185d", "old_mode": 33188, "old_path": "src/main/java/com/googlesource/gerrit/plugins/uploadvalidator/ContentTypeUtil.java", "new_id": "517d2450bcd23d500b3aa4bce24f696bf5730077", "new_mode": 33188, "new_path": "src/main/java/com/googlesource/gerrit/plugins/uploadvalidator/ContentTypeUtil.java" } ] }