Skip to content

/user-media/robots.txt and /user-media/favicon.ico return 404 #151

Description

@can3p

The robots.txt and favicon.ico special cases live inside the user-media/:fname/:class route (cmd/web/main.go, around line 229). That route only matches with a class segment, so the paths crawlers and browsers actually request never reach them.

Reproduction

  • GET /user-media/robots.txt returns 404. GET /user-media/robots.txt/thumb returns 200 "OK".
  • GET /user-media/favicon.ico returns 404. GET /user-media/favicon.ico/thumb redirects to the static favicon.

Expected: both paths are served without the class segment.

Pinned by the skipped test TestE1UserMediaSpecialFilesAtRoot in e2e/visibility_test.go (W3).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions