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

nuxeo-dropzone not managing xpath attribute properly for complex types

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.2.0
    • Fix Version/s: None
    • Component/s: Layouts

      Description

      Steps to reprodude:

      • Create schema called repeatAndCompare wit a complex field inside:
        • repeatAndCompare (Schema)
          • actor (Complex)
            • image (Blob)
      • Use a nuxeo-dropzone web element to upload a file to the blob field in your view:
          <nuxeo-dropzone role="widget"
                          label="[[i18n('label.form.actorImage')]]"
                          document="{{document}}"
                          xpath="repeatAndCompare:actor/image">
          </nuxeo-dropzone>
      

      Using repeatAndCompare:actor/image as xpath in the nuxeo-dropzone, it fails with an error in the user interface:

      documentCreationForm.createError

      NOTE: Also tested with repeatAndCompare:actor.image (using a '.' instead of '/'). It doesn'f fail, but it's not uploading the file.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: