Closed Bug 527782 Opened 15 years ago Closed 15 years ago

serve JSON as application/json on getpersonas.com

Categories

(mozilla.org Graveyard :: Server Operations, task)

task
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: myk, Assigned: fox2mike)

References

Details

Currently, JSON (f.e. <https://www.getpersonas.com/static/3/3/33/index_1.json>) is served from getpersonas.com as text/plain.  According to RFC 4627 <http://www.ietf.org/rfc/rfc4627.txt>, the media type for JSON is application/json.  getpersonas.com should serve its JSON as that media type, so extensions like JSONView <http://brh.numbera.com/software/jsonview/> can pretty-print it.
Target Milestone: --- → 2.0
Moving over to IT, they can setup apache to serve .json files with the appropriate content type.
Assignee: nobody → server-ops
Component: getpersonas.com → Server Operations
Product: Websites → mozilla.org
QA Contact: getpersonas-com → mrz
Target Milestone: 2.0 → ---
Version: unspecified → other
We can make this change along with tomorrow's push.
Assignee: server-ops → shyam
Blocks: 527792
Would it be possible to make this change on sm-personas01.mozilla.org in advance of the push?  I don't expect it to cause any problems, but it would be useful to be able to verify that on the staging server beforehand.
(In reply to comment #3)
> Would it be possible to make this change on sm-personas01.mozilla.org in
> advance of the push?  I don't expect it to cause any problems, but it would be
> useful to be able to verify that on the staging server beforehand.

Added. Let me know if it looks fine/you're seeing the right type.
(In reply to comment #4)
> Added. Let me know if it looks fine/you're seeing the right type.

Thanks!  I've done various tests today, and not only do I see the right type, but the extension appears to handle JSON served as that type just fine.
Pushed this change to production.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Summary: serve JSON as application/json → serve JSON as application/json on getpersonas.com
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.