[bug] Nonexistent paths under /.well-known/ yield 200 OK response #447
Labels
No labels
a11y
Bug
Bug fix
cannot reproduce
CSS
Documentation
enhancement
Feature
Feature request
Held for next release cycle
Minor change
needs change/feedback
performance
priority: critical
priority: high
priority: low
priority: medium
priority: patch welcome
regression
Translation/Locale
WIP
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AkkomaGang/akkoma-fe#447
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In commit
cb48c95to the Mastodon.py library, a method is added that queries the endpoint/.well-known/oauth-authorization-server. This endpoint should provide authorization server metadata, as described in RFC 8414.Supporting this endpoint is a feature request I'll submit separately, but the primary issue I have is that right now, instead of responding with a 404 code, akkoma-fe responds with 200 OK and renders the web UI. This causes Mastodon.py to return an error, as it attempts to parse akkoma-fe HTML as JSON.
Ideally, requests to routes or endpoints that don't exist should get 404 responses, but this is particularly important for paths under
/.well-known, as they are likely to be requested programmatically.Sorry if this is better suited for the main akkoma repository. I'm submitting it here because of its relation to #264.
See also halcy/Mastodon.py#422.
Cheers :)
Version:
cfbf3ecb6dSeverity: I cannot use it as easily as I'd like.
I have double-checked and have not found this issue mentioned anywhere.