balrog admin ui shows bad json on the permissions page

RESOLVED FIXED

Status

Release Engineering
General Automation
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: bhearsum, Assigned: peterbe)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

5 years ago
14:27 <peterbe> btw, {'product': 'foo'} isn't valid JSON
14:27 <peterbe> http://www.hastebin.com/yemohoyago.py
14:27 <peterbe> You have to type it in as `{"product": "foo"}` but it's shown in the form as: http://cl.ly/LWXv
14:28 <bhearsum> oh yeah
14:28 <bhearsum> i always forget which quotes it is
14:28 <peterbe> well, it's still a bug that it's represented as {'product': 'foo'}
14:29 <bhearsum> yeah
14:29 <bhearsum> what's weird is that that output comes from simplejson IIRC
14:31 <peterbe> >>> simplejson.dumps({'product':'foo'})
14:31 <peterbe> '{"product": "foo"}'
14:32 <bhearsum> huh
14:32 <bhearsum> could be flask or wtforms mucking it up
14:32 <peterbe> to me it looks like it's doing repr({"product": 'foo'})
14:33 <peterbe> ...which is {'product': 'foo'}
14:33 <bhearsum> ah, that sounds likely
(Assignee)

Updated

5 years ago
Assignee: nobody → peterbe
(Assignee)

Updated

5 years ago
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.