This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
forgejo/routers
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
..
admin
api/v1 [Enhancement] Allow admin to merge pr with protected file changes (#12078) 2020-10-13 14:50:57 -04:00
dev
events
org
private [Enhancement] Allow admin to merge pr with protected file changes (#12078) 2020-10-13 14:50:57 -04:00
repo Avatars and Repo avatars support storing in minio (#12516) 2020-10-14 21:07:51 +08:00
routes Prevent panics with missing storage (#13164) 2020-10-15 23:51:06 -04:00
user Avatars and Repo avatars support storing in minio (#12516) 2020-10-14 21:07:51 +08:00
utils Update golangci-lint to version 1.31.0 (#13102) 2020-10-11 21:27:20 +01:00
home.go
init.go
install.go Update golangci-lint to version 1.31.0 (#13102) 2020-10-11 21:27:20 +01:00
metrics.go
swagger_json.go