404 when compare code #2957

Closed
opened 2025-11-02 04:55:18 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @FalconWu2017 on GitHub (Feb 22, 2019).

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

2019/02/22 10:41:09 [D] CSRF Token:
2019/02/22 10:41:10 [T] ParseCompareInfo[5]: does not have fork or in same repository
2019/02/22 10:41:10 [D] Template: status/404

Description

If request the url like '/compare/master...userName:fix3' it will lead to 404 page.
This is wrong url,it default compare local repo and fork repo, but I don't have any fork repos existed.I want compare two branchs in same repo.

Originally created by @FalconWu2017 on GitHub (Feb 22, 2019). - Gitea version (or commit ref):1.7.2 - Git version:1.20.1 - Operating system:windows server 2012 datacenter - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [ ] Not relevant - Log gist: 2019/02/22 10:41:09 [D] CSRF Token: 2019/02/22 10:41:10 [T] ParseCompareInfo[5]: does not have fork or in same repository 2019/02/22 10:41:10 [D] Template: status/404 ## Description If request the url like '/compare/master...userName:fix3' it will lead to 404 page. This is wrong url,it default compare local repo and fork repo, but I don't have any fork repos existed.I want compare two branchs in same repo.
GiteaMirror added the type/bug label 2025-11-02 04:55:18 -06:00
Author
Owner

@0x5c commented on GitHub (Feb 22, 2019):

Is it like #3727 ?

@0x5c commented on GitHub (Feb 22, 2019): Is it like #3727 ?
Author
Owner

@FalconWu2017 commented on GitHub (Feb 22, 2019):

Yes,it is.

@FalconWu2017 commented on GitHub (Feb 22, 2019): Yes,it is.
Author
Owner

@lunny commented on GitHub (Feb 22, 2019):

This has been resolved by https://github.com/go-gitea/gitea/pull/6098

@lunny commented on GitHub (Feb 22, 2019): This has been resolved by https://github.com/go-gitea/gitea/pull/6098
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2957