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

Using the widget Files triggers an error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.10, 10.2
    • Fix Version/s: 9.10-HF23, 10.3
    • Component/s: Seam / JSF UI
    • Backlog priority:
      700
    • Sprint:
      nxfit 10.10.1, nxfit 10.10.2
    • Story Points:
      2

      Description

      1. install Nuxeo
      2. install JSF UI
      3. In Studio, create a custom document type having a field with files:files (see dragAndDrogFilesWidget.png)
      4. sync the project with the server
      5. create a document and attach 3 documents using the button Add New Attached File
      6. save the document
      7. observe the server logs contain:
        2018-09-19 16:26:32,100 ERROR [http-nio-0.0.0.0-8080-exec-7] [org.nuxeo.ecm.core.api.model.impl.RemovedProperty] Property 'files/-1/filename' is marked as removed from 'files' schema, don't use it anymore. Return null
        2018-09-19 16:26:32,100 ERROR [http-nio-0.0.0.0-8080-exec-7] [org.nuxeo.ecm.core.api.model.impl.RemovedProperty] Property 'files/-1/filename' is marked as removed from 'files' schema, don't use it anymore. Do nothing
        

      Expected behavior: there should not be any error and filename property should not be used
      Note: After further testing, it seems the issue comes from Studio generating this code (see OSGI-ING/extensions.xml file inside the attached ffischer-9-ffischer.zip file, see NXS-5019 for this:

            <widget name="files" type="filesList">
              <labels>
                <label mode="any">Files</label>
              </labels>
              <translated>false</translated>
              <fields>
                <field>files:files</field>
              </fields>
              <subWidgets>
                <widget name="sub0" type="file">
                  <labels>
                    <label mode="any"></label>
                  </labels>
                  <translated>false</translated>
                  <fields>
                    <field>file</field>
                    <field>filename</field>
                  </fields>
                </widget>
              </subWidgets>
            </widget>
      

        Attachments

        1. dragAndDrogFilesWidget.png
          338 kB
          Frantz Fischer

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 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 - 3 hours
                  3h