Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-4032

[Page attachments] Drag and drop does not work

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.5
    • None
    • None
    • None

      How to reproduce

      • On demo data, go to "Pièces jointes" page
      • Open the page attachments tool
      • Try to drag-and-drop a root file in the director "Images"

      There is a JS error

        1. Capture.PNG
          8 kB
          Laurence Aumeunier
        2. Capture2.PNG
          14 kB
          Laurence Aumeunier

          [CMS-4032] [Page attachments] Drag and drop does not work

          Bad substring is fixed but now this depend on CMS-4527

          Laurence Aumeunier added a comment - Bad substring is fixed but now this depend on CMS-4527

          Currently hardcoded in ExplorerTree.i18n.js (lien 824):

          n.parentNode.getPath('name').substr(6)
          

          Don't forget that ExplorerTree is not only used by resources explorer ...

          Cédric Damioli added a comment - Currently hardcoded in ExplorerTree.i18n.js (lien 824): n.parentNode.getPath( 'name' ).substr(6) Don't forget that ExplorerTree is not only used by resources explorer ...

          If you look at the requests, you can see:

          {"0":{"pluginOrWorkspace":"core","responseType":"xml","url":"/has-right","parameters":{"rights":"Plugin_Explorer_File_Delete","context":"hments/Nouveau dossier"}}}
          

          which answers

          ActionResult>
          <hasRight>false</hasRight>
          </ActionResult>
          

          The context seems cut "hments/Nouveau dossier"

          Laurence Aumeunier added a comment - If you look at the requests, you can see: { "0" :{ "pluginOrWorkspace" : "core" , "responseType" : "xml" , "url" : "/has-right" , "parameters" :{ "rights" : "Plugin_Explorer_File_Delete" , "context" : "hments/Nouveau dossier" }}} which answers ActionResult> <hasRight> false </hasRight> </ActionResult> The context seems cut "hments/Nouveau dossier"

          For me it works for resource explorer

          Laurence Aumeunier added a comment - For me it works for resource explorer

          Drag'n'drop is blocked in any resource tree

          Raphaël Franchet added a comment - Drag'n'drop is blocked in any resource tree

          There is no more js error but the drag&drop is impossible

          Laurence Aumeunier added a comment - There is no more js error but the drag&drop is impossible

          maybe due to the same issue as attachments problems

          Raphaël Franchet added a comment - maybe due to the same issue as attachments problems

          I cannot reproduce the second behavior, and the first one is not reproduced at each try.
          If the directory is closed before the move is done, you may have issues (but they are only graphical)

          Raphaël Franchet added a comment - I cannot reproduce the second behavior, and the first one is not reproduced at each try. If the directory is closed before the move is done, you may have issues (but they are only graphical)

          Other test, other behavior:

          • Move a file of "Images" directory to the root
            => The move is done but the cursor stayed with moved file (see Capture2.PNG)

          Laurence Aumeunier added a comment - Other test, other behavior: Move a file of "Images" directory to the root => The move is done but the cursor stayed with moved file (see Capture2.PNG)

            ngavalda Nicolas Gavalda (Inactive)
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: