matrix-org / matrix-org/matrix.org

https://matrix.org/.well-known/matrix/ returns inconsistent data

Open Beginner friendly
#3,297 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

homeserver
Dominant language
JavaScript
Stars
616
Forks
463
Avg merge
2d 3h
Merged PRs (30d)
19

Description

A request GET https://matrix.org/.well-known/matrix/ returns inconsistent data:
- the content-type is `application/json`
- the content is the Html 404 page.

@benbz suggested that the culprit could be located at https://github.com/matrix-org/matrix.org/blob/main/static/_headers#L17

Note: the problem is similar if any unknown path is added the the URI, for instance https://matrix.org/.well-known/matrix/foo

Also: this is probably a minor issue!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the response for https://matrix.org/.well-known/matrix/ and an unknown path such as /foo, then inspect static/_headers around line 17. Compare the content type with the returned body; done means these paths no longer return an HTML 404 page while being labeled application/json.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.