You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules
zeripath fe09ee564d
Prevent context deadline error propagation in GetCommitsInfo (#20346)
* Prevent context deadline error propagation in GetCommitsInfo

Although `WalkGitLog` tries to test for `context.DeadlineExceededErr`
there is a small chance that the error will propagate to the reader
before it is recognised. This will cause the error to propagate up to
`renderDirectoryFiles` and cause a http status 500.

Here we check that the error passed is a `DeadlineExceededErr` via error.Is

Fix #20329

Signed-off-by: Andrew Thornton <art27@cantab.net>
2 years ago
..
activitypub Add more linters to improve code readability (#19989) 2 years ago
analyze Simplify `IsVendor` (#19626) 2 years ago
appstate Use a struct as test options (#19393) 2 years ago
auth Remove legacy `+build:` constraint (#19582) 2 years ago
avatar Remove legacy `+build:` constraint (#19582) 2 years ago
base Add more linters to improve code readability (#19989) 2 years ago
cache Update go-chi/cache to utilize Ping() (#19719) 2 years ago
charset Fix various typos (#20338) 2 years ago
container Move reaction to models/issues/ (#19264) 2 years ago
context Refactor `i18n` to `locale` (#20153) 2 years ago
convert Add more linters to improve code readability (#19989) 2 years ago
csv Allow render HTML with css/js external links (#19017) 2 years ago
doctor Fix various typos (#20338) 2 years ago
emoji format with gofumpt (#18184) 2 years ago
eventsource Add more linters to improve code readability (#19989) 2 years ago
generate Use base32 for 2FA scratch token (#18384) 2 years ago
git Prevent context deadline error propagation in GetCommitsInfo (#20346) 2 years ago
gitgraph Add more linters to improve code readability (#19989) 2 years ago
graceful Add more linters to improve code readability (#19989) 2 years ago
hcaptcha hCaptcha Support (#12594) 4 years ago
highlight Add more linters to improve code readability (#19989) 2 years ago
hostmatcher Add tests for the host checking logic, clarify the behaviors (#20328) 2 years ago
httpcache Set the LastModified header for raw files (#18356) 2 years ago
httplib refactor httplib (#18338) 2 years ago
indexer Fix `dump-repo` git init, fix wrong error type for NullDownloader (#20182) 2 years ago
json Refactor legacy `unknwon/com` package, improve golangci lint (#19284) 2 years ago
lfs Move some code into models/git (#19879) 2 years ago
log Empty log queue on flush and close (#19994) 2 years ago
markup Fix NPE when using non-numeric (#20277) 2 years ago
metrics format with gofumpt (#18184) 2 years ago
migration Fix `dump-repo` git init, fix wrong error type for NullDownloader (#20182) 2 years ago
mirror Implement sync push mirror on commit (#19411) 2 years ago
nosql Fix various typos (#20338) 2 years ago
notification Implement sync push mirror on commit (#19411) 2 years ago
options Remove legacy `+build:` constraint (#19582) 2 years ago
packages Add more linters to improve code readability (#19989) 2 years ago
paginator Remove legacy unmaintained packages, refactor to support change default locale (#19308) 2 years ago
password Fixed assert statements. (#16089) 3 years ago
pprof refactor: move from io/ioutil to io and os package (#17109) 3 years ago
private Allow manager logging to set SQL (#20064) 2 years ago
process Add more linters to improve code readability (#19989) 2 years ago
proxy Return nil proxy function if proxy not enabled (#16742) 3 years ago
public Remove legacy `+build:` constraint (#19582) 2 years ago
queue Add more linters to improve code readability (#19989) 2 years ago
recaptcha refactor: move from io/ioutil to io and os package (#17109) 3 years ago
references Add more linters to improve code readability (#19989) 2 years ago
regexplru Custom regexp external issues (#17624) 2 years ago
repository Adjust transaction handling via db.Context (#20031) 2 years ago
secret Use `CryptoRandomBytes` instead of `CryptoRandomString` (#18439) 2 years ago
session format with gofumpt (#18184) 2 years ago
setting Use default values when provided values are empty (#20318) 2 years ago
sitemap Add sitemap support (#18407) 2 years ago
ssh Refactor SSH init code, fix directory creation for TrustedUserCAKeys file (#20299) 2 years ago
storage Add more linters to improve code readability (#19989) 2 years ago
structs Add more linters to improve code readability (#19989) 2 years ago
svg Remove legacy `+build:` constraint (#19582) 2 years ago
sync Use queue instead of memory queue in webhook send service (#19390) 2 years ago
templates Vertical align avatar at middle (#20302) 2 years ago
test Move access and repo permission to models/perm/access (#19350) 2 years ago
timeutil Make better use of i18n (#20096) 2 years ago
translation Allow dev i18n to be more concurrent (#20159) 2 years ago
typesniffer Fix raw endpoint PDF file headers (#19825) 2 years ago
updatechecker format with gofumpt (#18184) 2 years ago
upload Simplify parameter types (#18006) 3 years ago
uri Prevent NPE if gitea uploader fails to open url (#18080) 3 years ago
user Add gitea-vet (#10948) 4 years ago
util Add more linters to improve code readability (#19989) 2 years ago
validation use IsLoopback (#19477) 2 years ago
web Fix various typos (#20338) 2 years ago