Page MenuHomePhabricator

Content-type on OAuth 2.0 profile endpoint is text/html, should be application/json
Closed, ResolvedPublic

Description

The content of the oauth2/resource/profile endpoint is a JSON object, but the content-type header is text/html. This throws off some parsers and client libraries, like JQuery.

Event Timeline

This isn't a big deal, but it's the kind of detail that can be annoying for client developers.

Change #1058229 had a related patch set uploaded (by AutumnFeather; author: AutumnFeather):

[mediawiki/extensions/OAuth@master] UNTESTED Fix resource response to use JSON content type header

https://gerrit.wikimedia.org/r/1058229

Change #1058258 had a related patch set uploaded (by Urbanecm; author: AutumnFeather):

[mediawiki/extensions/OAuth@wmf/1.43.0-wmf.16] Fix resource response to use JSON content type header

https://gerrit.wikimedia.org/r/1058258

Change #1058259 had a related patch set uploaded (by Urbanecm; author: AutumnFeather):

[mediawiki/extensions/OAuth@wmf/1.43.0-wmf.15] Fix resource response to use JSON content type header

https://gerrit.wikimedia.org/r/1058259

Feather claimed this task.

Change #1058258 merged by jenkins-bot:

[mediawiki/extensions/OAuth@wmf/1.43.0-wmf.16] Fix resource response to use JSON content type header

https://gerrit.wikimedia.org/r/1058258

Change #1058259 merged by jenkins-bot:

[mediawiki/extensions/OAuth@wmf/1.43.0-wmf.15] Fix resource response to use JSON content type header

https://gerrit.wikimedia.org/r/1058259

Mentioned in SAL (#wikimedia-operations) [2024-07-30T21:45:42Z] <urbanecm@deploy1003> Started scap sync-world: Backport for [[gerrit:1058258|Fix resource response to use JSON content type header (T263870)]], [[gerrit:1058259|Fix resource response to use JSON content type header (T263870)]]

Mentioned in SAL (#wikimedia-operations) [2024-07-30T21:53:51Z] <urbanecm@deploy1003> Finished scap: Backport for [[gerrit:1058258|Fix resource response to use JSON content type header (T263870)]], [[gerrit:1058259|Fix resource response to use JSON content type header (T263870)]] (duration: 08m 09s)

Change #1058229 merged by jenkins-bot:

[mediawiki/extensions/OAuth@master] Fix resource response to use JSON content type header

https://gerrit.wikimedia.org/r/1058229