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/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>
4 years ago
..
admin Hide sync ssh keys button on admin dashboard if ssh disabled or builtin-ssh enabled (#13072) 4 years ago
api/v1 [Enhancement] Allow admin to merge pr with protected file changes (#12078) 4 years ago
dev Display ui time with customize time location (#7792) 5 years ago
events Add EventSource support (#11235) 4 years ago
org Set opengraph attributes on org pages (#12803) 4 years ago
private [Enhancement] Allow admin to merge pr with protected file changes (#12078) 4 years ago
repo Avatars and Repo avatars support storing in minio (#12516) 4 years ago
routes Prevent panics with missing storage (#13164) 4 years ago
user Avatars and Repo avatars support storing in minio (#12516) 4 years ago
utils Update golangci-lint to version 1.31.0 (#13102) 4 years ago
home.go Simplify CheckUnitUser logic (#12854) 4 years ago
init.go Move all push update operations to a queue (#10133) 4 years ago
install.go Update golangci-lint to version 1.31.0 (#13102) 4 years ago
metrics.go Use gitea forked macaron (#7933) 5 years ago
swagger_json.go Add gitea-vet (#10948) 4 years ago