Closed Bug 1235609 Opened 8 years ago Closed 8 years ago

wiki.mozilla.org serves json for a wiki page name ending in .json

Categories

(DevTools :: JSON Viewer, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1235725

People

(Reporter: Callek, Assigned: nmaul)

Details

Visit:
https://wiki.mozilla.org/ReleaseEngineering/How_To/allthethings.json

Then visit:
https://wiki.mozilla.org/ReleaseEngineering/How_To/allthethings.%6a%73%6f%6e

Notice the latter is a real page, (and should be a real page) while the former is served as json by the web server and firefox tries to parse as json.

Yes the page could be renamed but I don't think we want real wiki pages able to be served as json anyway...
Whiteboard: [kanban:https://webops.kanbanize.com/ctrl_board/2/2368]
??? both look normal to me. Content-Type: text/html, looks like a normal wiki page. Checked in Chrome and Firefox Beta.

Some addon breaking it for you, maybe? Can anyone else replicate?
Flags: needinfo?(bugspam.Callek)
Assignee: server-ops-webops → nmaul
I'm on dev edition, so maybe thats the cause?  https://developer.mozilla.org/docs/Tools/Valence is listed as an addon in my addons list, and I've not actively chosen to download... let me look again...

And it seems that it does indeed serve as ```Content-Type:"text/html; charset=UTF-8"``` so probably an addon/dev-edition issue.
Component: WebOps: IT-Managed Tools → Developer Tools: JSON Viewer
Flags: needinfo?(bugspam.Callek)
Product: Infrastructure & Operations → Firefox
QA Contact: smani
Version: other → unspecified
And to be clear, even with Valence disabled, it still has this behavior
Whiteboard: [kanban:https://webops.kanbanize.com/ctrl_board/2/2368]
I'm also having this issue with Developer Edition (FF45).
I came across this while checking https://docs.npmjs.com/files/package.json , which should render as a HTML document, and also contains this header in the response. 
> Content-Type:"text/html; charset=UTF-8"

Thanks for the workaround in the description!
duplicate of this bug 1235725 perhaps?
(In reply to Robert Longson from comment #5)
> duplicate of this bug 1235725 perhaps?

They are indeed one and the same issue afaict. Not sure which way to dupe though.
I'm arbitrarily duping this forward to bug 1235725, since that bug has a "regression" bug comment and this bug is much noisier for its time spent going around the triage queues.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.