Unparseable JSON string

Bug #1180485 reported by Víctor R. Ruiz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
WebApps: Applications Data
Undecided
Robert Bruce Park
webapps-applications (Ubuntu)
Undecided
Unassigned

Bug Description

This code breaks the integration scripts:

// This placeholder gets munged with real data at build time.
const WebappsGettextDict = JSON.parse(unescape(
  ""
));

When run in javascript console, it raises "SyntaxError: Unexpected end of input". The JSON string must be changed to something like

const WebappsGettextDict = JSON.parse(unescape("{}"));

Related branches

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:webapps-applications at revision 538, scheduled for release in webapps-applications, milestone 2.4.2

Changed in webapps-applications:
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package webapps-applications - 2.4.16daily13.05.16.1-0ubuntu1

---------------
webapps-applications (2.4.16daily13.05.16.1-0ubuntu1) saucy; urgency=low

  [ Alexandre Abreu ]
  * Make sure that we don't crash when a given script does not offer a
    proper "translation object" (we should also find a better way to do
    it).
  * Fix migration script. (LP: #1056513)

  [ Robert Bruce Park ]
  * Increase linter coverage. .
  * Fix some lintian warnings.
  * Port po2json.py to python3, including some refactoring to simplify
    it. (LP: #1180485)

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 540
 -- Ubuntu daily release <email address hidden> Thu, 16 May 2013 08:10:08 +0000

Changed in webapps-applications (Ubuntu):
status: New → Fix Released
Changed in webapps-applications:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers