gitea/modules
zeripath 91f2afdb54
Prevent panics with missing storage (#13164)
* The `.Use` of storageHandler before setting up the template renderer
causes a panic if there is an error to log.
* The error passed to `ctx.Error` in that case may contain sensitive
information and should not be rendered to the end user. We should
instead log the error and render a simple error message.
* There is no handling of missing avatars and this needs a 404. Minio
errors need to be mapped to standard golang errors such as
os.ErrNotExist.
* There is no logging when storage is set up.

Related #13159

Signed-off-by: Andrew Thornton <art27@cantab.net>
2020-10-15 23:51:06 -04:00
..
analyze
auth [Vendor] Update go-ldap to v3.2.4 (#13163) 2020-10-15 15:27:33 -04:00
avatar Avatars and Repo avatars support storing in minio (#12516) 2020-10-14 21:07:51 +08:00
base Use a simple format for the big number on ui (#12822) 2020-09-16 00:07:18 -04:00
cache Allow common redis and leveldb connections (#12385) 2020-09-28 00:09:46 +03:00
charset
context [API] If User is Admin, show 500 error message on PROD mode too (#13115) 2020-10-12 20:41:49 -04:00
convert [#13004] Add Timestamp to Tag list API (#13026) 2020-10-05 12:07:54 +08:00
cron Add ssh certificate support (#12281) 2020-10-10 20:38:09 -04:00
emoji
eventsource
generate
git Update golangci-lint to version 1.31.0 (#13102) 2020-10-11 21:27:20 +01:00
gitgraph
graceful Set TLS minimum version to 1.2 (#12689) 2020-09-02 23:37:49 +01:00
hcaptcha hCaptcha Support (#12594) 2020-10-02 23:37:53 -04:00
highlight Escape failed highlighted code (#12685) 2020-09-02 16:19:42 -04:00
httplib
indexer fix: use Base36 for all code indexers (#12830) 2020-09-14 13:40:07 +03:00
lfs LFS support to be stored on minio (#12518) 2020-09-08 23:45:10 +08:00
log Update golangci-lint to version 1.31.0 (#13102) 2020-10-11 21:27:20 +01:00
markup Update golangci-lint to version 1.31.0 (#13102) 2020-10-11 21:27:20 +01:00
metrics
migrations Gitea 2 Gitea migration (#12657) 2020-10-14 07:06:00 +03:00
nosql Allow common redis and leveldb connections (#12385) 2020-09-28 00:09:46 +03:00
notification Fix repository create/delete event webhooks (#13008) 2020-10-02 10:37:46 +01:00
options
password Check passwords against HaveIBeenPwned (#12716) 2020-09-08 17:06:39 -05:00
pprof
private
process
public fix go1.15 lint error in modules/public/public.go (#12707) 2020-09-04 16:15:54 +03:00
queue Slightly simplify the queue settings code to help reduce the risk of problems (#12976) 2020-10-15 17:40:03 -04:00
recaptcha hCaptcha Support (#12594) 2020-10-02 23:37:53 -04:00
references Add spent time to referenced issue in commit message (#12220) 2020-09-04 11:37:37 -04:00
repofiles Finally fix diff names (#13136) 2020-10-14 07:49:33 +03:00
repository Update golangci-lint to version 1.31.0 (#13102) 2020-10-11 21:27:20 +01:00
secret Attachments: Add extension support, allow all types for releases (#12465) 2020-10-05 01:49:33 -04:00
session Allow common redis and leveldb connections (#12385) 2020-09-28 00:09:46 +03:00
setting Slightly simplify the queue settings code to help reduce the risk of problems (#12976) 2020-10-15 17:40:03 -04:00
ssh Add ssh certificate support (#12281) 2020-10-10 20:38:09 -04:00
storage Prevent panics with missing storage (#13164) 2020-10-15 23:51:06 -04:00
structs Gitea 2 Gitea migration (#12657) 2020-10-14 07:06:00 +03:00
svg
sync
task Log the underlying panic in runMigrateTask (#13096) 2020-10-11 14:51:13 -04:00
templates Use a simple format for the big number on ui (#12822) 2020-09-16 00:07:18 -04:00
test
timeutil
upload Update golangci-lint to version 1.31.0 (#13102) 2020-10-11 21:27:20 +01:00
user
util Update golangci-lint to version 1.31.0 (#13102) 2020-10-11 21:27:20 +01:00
validation
webhook Update golangci-lint to version 1.31.0 (#13102) 2020-10-11 21:27:20 +01:00