Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-5545

Copy and paste actions are resolving wrong implementation for ContentClipboard in new UI framework

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Neutral
    • None
    • 6.2
    • None
    • None

    Description

      Configuration for copy and paste resolves implementation of

      info.magnolia.ui.framework.ContentClipboard
      

      to

      info.magnolia.ui.contentapp.browser.JcrContentClipboard
      

      which leads to:

      java.lang.ClassCastException: info.magnolia.ui.datasource.jcr.JcrNodeWrapper cannot be cast to info.magnolia.ui.vaadin.integration.jcr.JcrItemId
      

      To reproduce: configure copy and paste actions in an app like this:

            copy:
              icon: icon-copy
              $type: copyContentAction
              availability:
                multiple: true
                properties: true
                rules:
                  - name: canCopyContent
                    $type: canCopyContentRule
            paste:
              icon: icon-paste
              $type: pasteContentAction
              availability:
                root: true
                rules:
                  - name: canPasteContent
                    $type: canPasteContentRule
                  - name: notDeleted
                    $type: jcrIsDeletedRule
                    negate: true
      

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              jsimak Jaroslav Simak
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD