Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 on "View File" in Diff view if file was also moved #1949

Closed
1 task done
jyrgenn opened this issue Jun 12, 2017 · 2 comments · Fixed by #1967
Closed
1 task done

404 on "View File" in Diff view if file was also moved #1949

jyrgenn opened this issue Jun 12, 2017 · 2 comments · Fixed by #1967
Labels
Milestone

Comments

@jyrgenn
Copy link

jyrgenn commented Jun 12, 2017

Description

In a test repository I have uploaded to try.gitea.io, I look at a certain commit diff:
https://try.gitea.io/jyrgenn/lingo/commit/cbf49a36bc353967f58b22de3d1b6ba5d04df7c0

The fifth file shown has not only been changed, but also been moved from hlp/listpusher.go to lob/listpusher.go in this commit. When I click on the "View File" button in the header bar of the file (marked in screenshot 1), I get a 404 error (screenshot 2). (The URL of the button link still refers to hlp/listpusher.go .)

The same happens with a Firefox browser without being logged in to try.gitea.org.

Screenshots

404_view_file_screenshot_1
404_view_file_screenshot_2

@jyrgenn
Copy link
Author

jyrgenn commented Jun 12, 2017

Confirmed the behaviour with a new installation of Gitea 1.1.2 on Debian Linux Jessie (current) with Sqlite db and git 2.1.4, same web client.

@jyrgenn
Copy link
Author

jyrgenn commented Jun 14, 2017

Can confirm fix on try.gitea.io. Thanks!

@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants