JSON converter module not proccesing strings with '<'
Bug #867198 reported by
Carlos Manuel Lopez
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
High
|
Sorin Marian Nasoi |
Bug Description
I run the next query:
import module namespace json="http://
declare variable $json-value = '{"html"
json:parse(
And I get then next error:
converters\
I've noticed that this problem occurs with any string containing '<' so for example if we change the second line for
declare variable $json-value := '{"html":"1 < 2"}'
it still crashes in the same way.
Related branches
lp:~zorba-coders/zorba/bug_867198
- Carlos Manuel Lopez (community): Approve
- Sorin Marian Nasoi: Approve
-
Diff: 78 lines (+25/-9)5 files modifiedsrc/com/zorba-xquery/www/modules/converters/json.xq.src/jansson_wrapper.cpp (+12/-9)
test_json/ExpQueryResults/converters/jansson/parse_json_12.xml.res (+1/-0)
test_json/ExpQueryResults/converters/jansson/parse_json_ml_06.xml.res (+1/-0)
test_json/Queries/converters/jansson/parse_json_12.xq (+4/-0)
test_json/Queries/converters/jansson/parse_json_ml_06.xq (+7/-0)
Changed in zorba: | |
milestone: | none → 2.1 |
Changed in zorba: | |
milestone: | 2.1 → none |
Changed in zorba: | |
status: | New → Fix Committed |
status: | Fix Committed → In Progress |
Changed in zorba: | |
status: | In Progress → Fix Committed |
Changed in zorba: | |
milestone: | none → 2.1 |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.