Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008758opensim[REGION] Script Functionspublic2020-08-29 19:582020-09-12 06:51
ReporterStolen Ruby 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionopen 
PlatformOSOS Version
Product Version0.9.1.0 
Target VersionFixed in Version 
Summary0008758: llList2Json is incorrectly handling empty strings
DescriptionUsing an empty string in llList2Json causes the result to be JSON_INVALID.

For example:

default {
    state_entry() {
        string a = "";
        string b;
        string json = llList2Json( JSON_OBJECT, [ "a", a, "b", b ] );
        llSay( 0, json );
    }
}

This script incorrectly returns JSON_INVALID. The expected result is: {"a":"","b":""}

As usual, here is a small patch that corrects that!
TagsNo tags attached.
Git Revision or version number
Run ModeStandalone (1 Region) , Standalone (Multiple Regions) , Grid (1 Region per Sim) , Grid (Multiple Regions per Sim)
Physics EngineubODE
Script EngineYEngine
EnvironmentUnknown
Mono VersionNone
Viewer
Attached Filespatch file icon 0001-Adjusted-how-ListToJson-handles-empty-strings.patch [^] (1,072 bytes) 2020-08-29 19:58 [Show Content]

- Relationships

-  Notes
(0036804)
UbitUmarov (administrator)
2020-09-07 18:34

seems this was forgotten..
basicly same code was now applied

sorry

- Issue History
Date Modified Username Field Change
2020-08-29 19:58 Stolen Ruby New Issue
2020-08-29 19:58 Stolen Ruby File Added: 0001-Adjusted-how-ListToJson-handles-empty-strings.patch
2020-08-29 19:58 Stolen Ruby Status new => patch included
2020-09-07 18:34 UbitUmarov Note Added: 0036804
2020-09-12 06:51 Stolen Ruby Status patch included => resolved


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker