← Back to team overview

divmod-dev team mailing list archive

[Bug 805734] [NEW] nevow.json serializes some line terminators such that Athena cannot deserialize them in the browser

 

Public bug reported:

JSON encoded bytes may include literal (that is, UTF-8 encoded) U+2028
or U+2029.  However, JavaScript string literals may not.  See
http://timelessrepo.com/json-isnt-a-javascript-subset for any more
detail that may be interesting.

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.

** Affects: nevow
     Importance: Undecided
         Status: In Progress

** Branch linked: lp:~divmod-dev/divmod.org/nevow-json

** Changed in: nevow
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Divmod-
dev, which is the registrant for nevow.
https://bugs.launchpad.net/bugs/805734

Title:
  nevow.json serializes some line terminators such that Athena cannot
  deserialize them in the browser

Status in Divmod Nevow:
  In Progress

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://timelessrepo.com/json-isnt-a-javascript-subset for any more
  detail that may be interesting.

  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nevow/+bug/805734/+subscriptions


Follow ups

References