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

"View File" link creates 404 in particular scenarios #12816

Closed
2 of 7 tasks
jsreynolds opened this issue Sep 11, 2020 · 2 comments · Fixed by #12771 or #12776
Closed
2 of 7 tasks

"View File" link creates 404 in particular scenarios #12816

jsreynolds opened this issue Sep 11, 2020 · 2 comments · Fixed by #12771 or #12776
Labels
issue/duplicate The issue has already been reported.
Milestone

Comments

@jsreynolds
Copy link

jsreynolds commented Sep 11, 2020

  • Gitea version (or commit ref): 1.12.4
  • Git version : 2.25.1
  • Operating system: Ubuntu 20.04
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

When reviewing code and clicking on “View File”, sometimes the view will fail and produce a 404 error. At first I thought this was an Nginx proxy issue, but in fact what I’m seeing is that for some of the files listed on the screen fail in View File when they are apparently missing part of their name. Please note that the underlying repository seems to have all the files intact and is fine - the code compiles, etc. Further review in the forum by kpfleming indicated that the issue might be that files were moved under folders with the same name. In fact, that seems to be true.

It was a much older project and originally everything in the repository was in the root folder, “attire-allowance”.
A new sub-folder under the root folder was created with the same name, “attire-allowance”.
File # 1 stayed where it was.
File # 2 was moved into the new sub-directory (also named “attire-allowance”).
Both files throw a 404 error when "View File" is clicked. The other files that show the full file name are not problematic.
...

Screenshots

image

@zeripath
Copy link
Contributor

Thanks for the report we've already fixed this in #12771 and its backport.

@zeripath zeripath added the issue/duplicate The issue has already been reported. label Sep 11, 2020
@zeripath zeripath added this to the 1.12.5 milestone Sep 11, 2020
@jsreynolds
Copy link
Author

My apologies - I should have looked harder. Thank you.

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/duplicate The issue has already been reported.
Projects
None yet
2 participants