forked from go-gitea/gitea
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Currently, if you try to view (#22) an annexed file that hasn't been uploaded, you get a 500:
with an error like:
2023/03/06 13:31:34 ...ers/web/repo/view.go:393:renderFile() [E] getFileReader: in /home/GRAMES.POLYMTL.CA/p115628/src/neurogitea/gitea/data/gitea-repositories/datasets/spine-generic-processed2.git: SHA256E-s46315943--946ae8988bcb0ac9be373d0ea998b5eb91929761bab6ee68d955a7bb48793e4b.nii.gz does not seem to be a valid annexed file: exit status 1
2023/03/06 13:31:34 router: completed GET /datasets/spine-generic-processed2/src/branch/master/sub-amu04/anat/sub-amu04_T1w.nii.gz for [::1]:44488, 500 Internal Server Error in 88.2ms @ repo/view.go:762(repo.Home)
This should probably be a 404. Or a fallback to rendering the annex pointer.
Metadata
Metadata
Assignees
Labels
No labels