nevow.json serializes some line terminators such that Athena cannot deserialize them in the browser
Bug #805734 reported by
Jean-Paul Calderone
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nevow |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
JSON encoded bytes may include literal (that is, UTF-8 encoded) U+2028 or U+2029. However, JavaScript string literals may not. See http://
Athena's JavaScript parser (browser-side JavaScript eval) cannot parse these literals. If we emit escaped versions of the line terminators, the parser won't need to change.
Related branches
lp://staging/~divmod-dev/divmod.org/nevow-json
- Tristan Seligmann: Approve
-
Diff: 51 lines (+23/-0)2 files modifiedNevow/nevow/json.py (+5/-0)
Nevow/nevow/test/test_json.py (+18/-0)
Changed in nevow: | |
status: | New → In Progress |
Changed in nevow: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.