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

Download through contextual menu in content view does not work

    XMLWordPrintable

    Details

    • Release Notes Summary:
      The download through context menu in content views is fixed.
    • Backlog priority:
      700
    • Sprint:
      nxfit 11.1.1
    • Story Points:
      2

      Description

      1. install 9.10 or later
      2. create a workspace
      3. create a File document
      4. attach a file to it
      5. go back to the workspace
      6. right-click on the icon of the File document
      7. click Download
      8. nothing happens
      9. observe in the response header the following:
        <envelope><header><context><conversationId>0NXMAIN10</conversationId></context></header><body><result id="1"><exception><message><str>segment%20filename%20cannot%20be%20resolved%2C%20file%3Acontent%2Ffilename</str></message></exception></result></body></envelope>
        

      This is due to NXP-21025 and NXP-18555. Following to this refactoring the property name is not file:content/filename but file:content/name.

      Replacing the value in the JS file with the latter fixes the issue.

      diff --git i/nuxeo-dm/nuxeo-platform-webapp/src/main/resources/web/nuxeo.war/scripts/default-contextmenu-actions.js w/nuxeo-dm/nuxeo-platform-webapp/src/main/resources/web/nuxeo.war/scripts/
      index ac8c96e5f40..8355c2e12a5 100644
      --- i/nuxeo-dm/nuxeo-platform-webapp/src/main/resources/web/nuxeo.war/scripts/default-contextmenu-actions.js
      +++ w/nuxeo-dm/nuxeo-platform-webapp/src/main/resources/web/nuxeo.war/scripts/default-contextmenu-actions.js
      @@ -109,7 +109,7 @@ function doPreviewPopup(docid) {
       }
       
       function doDownload(docid) {
      -  Seam.Component.getInstance("popupHelper").downloadDocument(docid, 'file:content', 'file:content/filename', navigationCB);
      +  Seam.Component.getInstance("popupHelper").downloadDocument(docid, 'file:content', 'file:content/name', navigationCB);
       }
      

      Please also check there are no other wrong naming of this property.

        Attachments

          Issue Links

            Activity

              People

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