Skip to content

Compare button on upstream repo leads to 404 #3727

Closed
@mxmehl

Description

@mxmehl
  • Gitea version (or commit ref): 1.4.0
  • Git version: 2.1.4
  • Operating system: Debian 8
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant: does not work

Description

Scenario: I, user joe, forked repository repo of another user called upstream.

Now, if I am on joe/repo and click on the green compare button, everything works as expected and I see the "Compare Changes" window. However, this doesn't work on upstream/repo, there I see a 404 error.

I noted that the 404 does not appear if I'm owner of the upstream repository's organisation.

The links of the button look like this:

https://git.example.org/upstream/repo/compare/master...joe:master from forked repo -> works
https://git.example.org/upstream/repo/compare/master...upstream:master from upstream repo -> doesn't work

I cannot check how the links looked like in 1.3, but I was told by a user on my Gitea instance that it worked before.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtopic/uiChange the appearance of the Gitea UItype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions