Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-28722

Fix infinite loop when using nuxeo-document-attachments on singlevalued property

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 10.10-HF22
    • Fix Version/s: None
    • Component/s: Web UI

      Description

      In Designer, have the following view layout:

      <!--
      `nuxeo-bim-view-layout`
      @group Nuxeo UI
      @element nuxeo-bim-view-layout
      -->
      <dom-module id="nuxeo-bim-view-layout">
        <template>
          <style>
            *[role=widget] {
              padding: 5px;
            }
          </style>   
      
       <div role="widget">
            <label>Svblob view - nuxeo-document-attachments</label>
            <nuxeo-document-attachments document="{{document}}" xpath="esv:svblob"></nuxeo-document-attachments>
        </div>  
      
      </template>  
      <script>
        Polymer({
          is: 'nuxeo-bim-view-layout',
          behaviors: [Nuxeo.LayoutBehavior],
          properties: {      /**
               * @doctype bim
               */
            document: {
              type: Object,
            },    }
        });
        </script>
      </dom-module>
      

      Notice that nuxeo-document-attachments is bound to esv:svblob which is a single valued property.

      Deploy that configuration in Web UI.

      Access the document: an infinite loop is triggered.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bchauvin Bertrand Chauvin
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                PagerDuty

                Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.