Skip to content

gitea returning 404 responses for theme css file, but not logging anything at server side #35651

@teletechie

Description

@teletechie

Description

No response

Gitea Version

1.24.6

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

The problem is a lack of logs, so there is no log to upload...

After upgrading gitea from when the default theme was "auto" to 1.24.6 where it is "gitea-auto" we started seeing a lot of issues in the web ui. further inspection revealed that the browser got 404 responses for the theme-auto.css file.

while trying to debug this i set log level up from Warn to Info and Debug. i could see the 200 responses for the web page, but nothing for the failed css files. this led me down a rabbit hole chasing why the query never arrived.

the fix, of course, was to simply comment out the setting of THEMES and DEFAULT_THEME in the ini file.

the serious bug here is why gitea wasn't logging anything about sending out 404 responses for non-existing theme files.

Git Version

2.47.3

Operating System

RHEL 9.6

How are you running Gitea?

downloaded binary originally installed using geerlingguy ansible class. the upgrade was done manually.

Database

None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions