-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: NXP-6.0, NXP-7.x, NXP-8.x
-
Component/s: None
-
Epic Link:
-
Sprint:nxsupport 9.3.4
-
Story Points:1
Some issues like the following randomly appear:
testMapHFJarfilesLocallyUnavailable60And710 malformed JSON string, neither array, object, number, string or atom, at character offset 1 (before "(end of string)") at /usr/bin/json_pp line 44. malformed JSON string, neither array, object, number, string or atom, at character offset 1 (before "(end of string)") at /usr/bin/json_pp line 44. /home/nuxeo/integration-scripts-priv/hfBuilder/../libs/connect.sh: ligne 276 : [: : nombre entier attendu comme expression ASSERT:[7.10 26] there should be 607 jar files listed expected:<607> but was:<466>
This seems to be due to a double execution of json_pp.
JSON_PP already formats the output of executeQuery.
But in functions like getLatestPackageId and getLatestPackageRevision (cf connect lib), an unneeded second json_pp is present:
JSON_PP_RES=$(echo "${JSON_RES}" | json_pp)