Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-1218

Prevent nuxeo-selectivity from trying to get suggestion when the operation is an empty string

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.30, 3.0.0
    • Fix Version/s: 2.4.31, 3.0.2
    • Component/s: UI
    • Tags:
    • Team:
      UI
    • Sprint:
      UI - 2020-08

      Description

      • In Studio Modeler create a simple vocabulary, MyVoc, with 1-2 values (we don't care, not the issue).
      • Have a custom document type, MyDoc, with one field, mydoc:mystring, type directory, linked to MyVoc.
      • Go to Designer and generate the layout for edit mode (for instance), then click the field and add an operation to the operation parameter (whatever, we don't care)
      • Save
      • Reload the page, and now, remove the text you put for the operation parameter.
      • If you look at the code you will see <nuxeo-directory-suggestion ... operation="" ...>, where you have an empty string for the operation.

      Deploy and test:

      Issues:
      1. WebUI should not try to connect when the operation is an empty string
      2. Designer could try to assert if an empty string is a possible value or not (not possible at the moment)

      Workaround: Go to the source, remove the operation=""

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 30 minutes
                  2h 30m