Uploaded image for project: 'Nuxeo Web UI'
  1. Nuxeo Web UI
  2. WEBUI-1184

Fix vocabularies fixture misbehaving since nuxeo js client upgrade for LTS-2023

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.3
    • Component/s: Test Framework

      Description

      Since the upgrade of the nuxeo-js-client to 4.0.3, the vocabularies fixture has the following issue at teardown:

      [2023-03-30T02:00:12.938Z] [chrome 110.0.5481.77 Linux #0-2] TypeError: opts.schemas is not iterable
      [2023-03-30T02:00:12.938Z] [chrome 110.0.5481.77 Linux #0-2] TypeError: opts.schemas is not iterable
      [2023-03-30T02:00:12.938Z] [chrome 110.0.5481.77 Linux #0-2]     at Request._computeOptions (/home/jenkins/workspace/retention_nuxeo-retention_PR-106/nuxeo-retention-web/node_modules/nuxeo/lib/base.js:244:34)
      [2023-03-30T02:00:12.938Z] [chrome 110.0.5481.77 Linux #0-2]     at Request.execute (/home/jenkins/workspace/retention_nuxeo-retention_PR-106/nuxeo-retention-web/node_modules/nuxeo/lib/request.js:121:26)
      [2023-03-30T02:00:12.938Z] [chrome 110.0.5481.77 Linux #0-2]     at Request.delete (/home/jenkins/workspace/retention_nuxeo-retention_PR-106/nuxeo-retention-web/node_modules/nuxeo/lib/request.js:111:17)
      [2023-03-30T02:00:12.938Z] [chrome 110.0.5481.77 Linux #0-2]     at map (/home/jenkins/workspace/retention_nuxeo-retention_PR-106/nuxeo-retention-web/node_modules/@nuxeo/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/vocabularies.js:33:16)
      [2023-03-30T02:00:12.938Z] [chrome 110.0.5481.77 Linux #0-2]     at Array.map (<anonymous>)
      [2023-03-30T02:00:12.938Z] [chrome 110.0.5481.77 Linux #0-2]     at World.<anonymous> (/home/jenkins/workspace/retention_nuxeo-retention_PR-106/nuxeo-retention-web/node_modules/@nuxeo/nuxeo-web-ui-ftest/features/step_definitions/support/fixtures/vocabularies.js:30:28)
      

      The issue has been observed in the nuxeo-retention addon ftests.

      The problem is that at teardown the fixture is giving the directory entry to the delete method whereas it should give only the id as path.

      The problem was already present in previous version, but it was hidden by another issue which happened on directory entry creation, which has been fixed in the recent nuxeo-js-client version.
      For the record, the directory entry was created on nuxeo, but it seems that the unmarshalling was failing with the error below, and then silently caught:

      TypeError: Cannot read property '_nuxeo' of undefined
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3 days, 3 hours
                  3d 3h
                  Remaining:
                  Time Spent - 6 hours Remaining Estimate - 2 days, 4 hours
                  2d 4h
                  Logged:
                  Time Spent - 6 hours Remaining Estimate - 2 days, 4 hours
                  6h