-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: NXP-6.0, NXP-7.x, NXP-8.x
-
Component/s: Continuous Integration
-
Epic Link:
-
Sprint:nxsupport 9.2.3
-
Story Points:1
Sometimes the package retrieval checksum verification fails because the JSON answer from connect is not parsed correctly:
../../libs/nuxeoServer.sh: line 215: [: "resultsCount":1: integer expression expected
This can be reproduced by launching ./nuxeoServer_test.sh in a row.
The JSON response does not contain a fixed attribute order. This means, the resultCount attribute can be either at the beginning or in the middle having a trailing comma, or be at the end and have no comma at all.
The following regex
sed 's/.*:\([0-9]*\),$/\1/g'
is the culprit.
To fix this, the countExistingPackages from connect lib should be used. It has a more reliable parsing and handles all those use cases.
- is related to
-
NXBT-1563 file should be checked for MD5 even if it is already present
- Resolved