Escape tab symbol when saving report to json

Stimulsoft Reports.JS discussion
Post Reply
nds
Posts: 3
Joined: Thu Dec 13, 2018 10:38 am

Escape tab symbol when saving report to json

Post by nds »

JS Designer (2018.3.5) can't open reports if any text field contains tab symbol.

Steps to reproduce:
1. Create new report in designer
2. Add new any SQL data source with query contained tab symbol. You can't add it with tab key so just copy from some text editor.
3. Save report as file
4. Open report file. Designer will crash when trying to JSON.parse(...).

As I can see, Stimulsoft.Base.StiJson.serialize() method make some escaping for special chars, but \t char is replaced with the same \t, while it must be replaced to \\t.
Lech Kulikowski
Posts: 6198
Joined: Tue Mar 20, 2018 5:34 am

Re: Escape tab symbol when saving report to json

Post by Lech Kulikowski »

Hello,

Thank you for the bug report. We have added this task to our to-do list, try to fix as fast as possible.

Thank you.
#7607
Lech Kulikowski
Posts: 6198
Joined: Tue Mar 20, 2018 5:34 am

Re: Escape tab symbol when saving report to json

Post by Lech Kulikowski »

Hello,

The issue is fixed. The fix will be available in the next build which will be within several days.

Thank you.
Post Reply