Ticket #161 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

MG layers using filter containing double quotes cause legend error on startup

Reported by: chrisclaydon Owned by: pagameba
Priority: P2 Milestone: 2.0
Component: Widgets Version: SVN
Severity: Major Keywords:
Cc: External ID: 1152239
state: Committed Browser: All
Operating System: All

Description

Load the attached MG package and view the Fusion layout. An error occurs on startup because the quotes in the filter for the layer's first theme get escaped twice.

i.e. " is replaced with \\"

This causes an error when trying to parse the scale ranges. The error is displayed in a dialog, and the legend fails to render.

Attachments

FusionFilterDefect.mgp Download (0.5 MB) - added by chrisclaydon 3 years ago.
MG package that illustrates the problem

Change History

Changed 3 years ago by chrisclaydon

MG package that illustrates the problem

Changed 3 years ago by pagameba

  • owner changed from madair to pagameba
  • status changed from new to assigned
  • state changed from Analysis Requested to Analysing

Changed 3 years ago by pagameba

  • status changed from assigned to closed
  • resolution set to fixed

(In [1653]) Fixes #161. addslashes was necessary when we were echo outputting the JSON response but var2json now escapes values so adding slashes for text is no longer required and in fact wrong because var2json escapes the slashes (causing this bug).

Changed 3 years ago by pagameba

  • state changed from Analysing to Committed
Note: See TracTickets for help on using tickets.