-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 9.10, 10.1
-
Fix Version/s: 9.10-HF27, 10.10-HF01, 11.1, 2021.0
-
Component/s: Seam / JSF UI
- install 9.10 or later
- create a workspace
- create a File document
- attach a file to it
- go back to the workspace
- right-click on the icon of the File document
- click Download
- nothing happens
- 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.
- depends on
-
NXP-21025 Remove deprecated code for LTS 2017
- Resolved