v615: dubious JSON quoted escape

Post Reply
jmk
Posts: 137
Joined: 31 May 2012, 12:08
Location: France

Many views are not functional when instance names or descriptions are containing an ' character.

<= Function eas:renderJSAPIText@common/core_utils.xsl is escaping &apos; resulting in illegal JSON expressions (e.g. "\^'" is not legal json per JSON Notation standard).

A fix would be to rewrite some part of this function logic but, maybe, a switch to fn:serialize(XXX,map{'method':'json'}) which is native in Xsl 3.1 could give a better long term solution.

As an example, I'm attaching a new version of enterprise/api/core_api_el_bus_cap_to_app_mart.xsl (used in the 'new org summary view') using XSLT/XPATH 3.1 native capabilities : maps, arrays and fn:serialize


J.-M.
You do not have the required permissions to view the files attached to this post.
User avatar
tkinte
Posts: 145
Joined: 18 Nov 2014, 08:24
Location: https://www.linkedin.com/in/tshitshi-kia-ntoni
Contact:

Hi

The same occurs with core_el_org_summary_new.xsl.

Code: Select all

'
and

Code: Select all

 - 
characters.

Best regards.

Tshitshi
Post Reply