SID-02422: SetGet returns ERROR: Invalid JSON path, syntax or range.
| Status: |
Answered |
TWiki version: |
6.1.0 |
Perl version: |
v5.16.3 |
| Category: |
CategoryPlugins |
Server OS: |
RedHat Linux 7.5, |
Last update: |
6 years ago |
Hello
I have a problem with GET returning ERROR: Invalid JSON path, syntax or range.
The following breaks if a value is set to zero. For example if "stuck_placement" is non zero then the GET returns correctly but with
"stuck_placement": 0 the error is thrown.
%SET{summary={ "staging": 316, "ongoing_by_campaign": 49, "stuck_placement": 0, "ongoing": 2782, "out_of_space": 9, "staging_by_campaign": 19, "last_week": 5132 } }% }
%GET{"summary.stuck_placement" default=0}%
Is there a workaround or is this a bug?
Thanks in advance
--
Peter Jones - 2019-12-19
Discussion and Answer
This looks like a bug. Let me investigate.
--
Peter Thoeny - 2019-12-22
Confirmed. I filed
TWikibug:Item7875
--
Peter Thoeny - 2019-12-22
This is now fixed. You can install the latest
SetGetPlugin
--
Peter Thoeny - 2019-12-22
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.