Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-5322

Fix error when chosing multiple complex field in Page Provider predicates

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.9.1
    • Fix Version/s: None
    • Component/s: Page Providers

      Description

      Note the equivalent use case on content views edition (through JSF layout configuration) goes well.

      Steps to reproduce:

      • define a schema called "trestcomplexmulti" (sorry for the typo but this will make it consistent with screenshots)
      • define field called "mcompl" of type "Complex" and make it multi-valued
      • as subfields, add "multi" (multi-valued String) and "yo" (single String)
      • define a page provider and add a predicate
      • on the predicate configuration popup, click on "Edit Binding" and choose the previously created schema
      • navigating in the tree, the "yo" subfield can be selected without any issue (and will setup the "Path" "mcompl/yo" automatically):
      • navigating to chose "the "multi" multi-valued field produces an error popup:

      Popup error content:

      Uncaught exception: com.google.gwt.core.client.JavaScriptException: (TypeError) : this.q.LJb(...) is null
          at Unknown.sWe(https://connect.nuxeo.com/nuxeo/site/studio/ide?project=atchertchian-SANDBOX line 9 > scriptElement)
          at Unknown.pWe(https://connect.nuxeo.com/nuxeo/site/studio/ide?project=atchertchian-SANDBOX line 9 > scriptElement)
          at Unknown.uWe(https://connect.nuxeo.com/nuxeo/site/studio/ide?project=atchertchian-SANDBOX line 9 > scriptElement)
          at Unknown.uWe(https://connect.nuxeo.com/nuxeo/site/studio/ide?project=atchertchian-SANDBOX line 9 > scriptElement)
          at Unknown.uWe(https://connect.nuxeo.com/nuxeo/site/studio/ide?project=atchertchian-SANDBOX line 9 > scriptElement)
          at Unknown.NWe(https://connect.nuxeo.com/nuxeo/site/studio/ide?project=atchertchian-SANDBOX line 9 > scriptElement)
          at Unknown.t$e(https://connect.nuxeo.com/nuxeo/site/studio/ide?project=atchertchian-SANDBOX line 9 > scriptElement)
          at Unknown.gk(https://connect.nuxeo.com/nuxeo/site/studio/ide?project=atchertchian-SANDBOX line 9 > scriptElement)
          at Unknown.fk/<(https://connect.nuxeo.com/nuxeo/site/studio/ide?project=atchertchian-SANDBOX line 9 > scriptElement)
          at Unknown.sI(https://connect.nuxeo.com/nuxeo/site/studio/ide?project=atchertchian-SANDBOX line 9 > scriptElement)
          at Unknown.vI(https://connect.nuxeo.com/nuxeo/site/studio/ide?project=atchertchian-SANDBOX line 9 > scriptElement)
          at Unknown.uI/<(https://connect.nuxeo.com/nuxeo/site/studio/ide?project=atchertchian-SANDBOX line 9 > scriptElement)
          at Unknown.anonymous(Unknown)
      

      2 bugs:

      • the binding for "yo" should be "mcompl/*/yo" as visible in the corresponding content view predicate configuration through JSF layouts
      • the binding for "multi" is disabled on content views --> maybe it should be the same for page providers , at least it should not crash

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: