Skip to content

Faulty display of commits when no user is logged in #188

Closed
@pmattern

Description

@pmattern
  • Gitea version (or commit ref): 871c964
  • Git version: 2.10.2
  • Operating system: Arch Linux, Debian stretch (testing)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • SQLite
  • Browser: Chromium 54.0.2840.100, Firefox 50.0

The display of particular commits in Gitea's Web-UI is faulty when no user is logged in.

Steps to reproduce:

  1. Launch a browser, navigate to a Gitea instance, say gitea.example.org, and make sure no user is logged in.
  2. View a particular repository, say gitea.example.org/foo/bar, click on "Commits" (→ gitea.example.org/foo/bar/commits/master).
  3. Click on an arbitrary commit hash in column "SHA1" (→ gitea.example.org/foo/bar/commit/<hash>). Instead of the usual diff-like view there's an error message in Chromium while Firefox either displays an empty page or offers to download some gzip archive. Regarding Firefox I failed to figure out what is triggering which of the two alternatives so far.
  4. Log in, repeat steps 2.-3. The commit will be displayed as expected.

The findings are the same when a repository is created from scratch by the Web-UI of Gitea or when a preexisting repository is pushed to Gitea. Problem seems to be a regression as it couldn't be seen with Gogs version 0.9.99.0915 (according to gogs --version).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions