Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-1885

Random JSON parsing errors while contacting connect

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: NXP-6.0, NXP-7.x, NXP-8.x
    • Fix Version/s: NXP-6.0, NXP-7.x, NXP-8.x
    • Component/s: None

      Description

      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)
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m