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

Fix schema generation when using the ILIKE operator

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 23.1
    • Fix Version/s: 24.1, 25, 26
    • Component/s: Layouts & Widgets
    • Tags:
    • Sprint:
      nxNag Sprint 7.3.5, nxNag Sprint 7.3.6
    • Story Points:
      3

      Description

      Step to reproduce:

      1. Go to an existing Content View
      2. in the Search Layout part, add a Generic Search widget configured with :
        * Field = dc:title (String)
        * Operator = ILIKE
        * Widget type = template
        
      3. code of the template
        <div xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html">
        
          <h:inputText id="#{widget.id}_field0" value="#{field_0}">
          </h:inputText>
        
        </div>
        
      4. hot-reload the project
      5. go to the content view and type some text in the filter. Submit
      6. the filter is not applied
      7. in the logs, there is a message like
        WARN  [DocumentModelResolver] Property Conversion failed from class java.lang.String to class [Ljava.lang.Object;: /Lmondoc_cv:dc_title

      Looking at the generated schema for the content view, the field is defined as multivalued whereas it should be monovalued

        <xs:element name="dc_title" type="nxs:stringList"/>
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty