-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 7.10-HF17, 8.3
-
Component/s: File Upload
-
Tags:
-
Backlog priority:800
-
Sprint:nxfit 9.1.2
-
Story Points:3
How to reproduce: Using Firefox 50,
- create a new File document
- go to Files tab of created document
- add a file using the Add button
- click Store Uploaded Files button
A leading slash character is inserted in the filename, which prevents its download.
The problem does not occur if drag & drop is used to add the file.
See screenshot and XML export below:
<?xml version="1.0" encoding="UTF-8"?> <document repository="default" id="628e85a1-4953-4734-832a-e5c1fbe11f3b"> <system> <type>File</type> <path>default-domain/workspaces/SUPNXP-18507/angularjs.pdf</path> <lifecycle-state>project</lifecycle-state> <lifecycle-policy>default</lifecycle-policy> <facet>Versionable</facet> <facet>Publishable</facet> <facet>Commentable</facet> <facet>HasRelatedText</facet> <facet>Thumbnail</facet> <access-control> <acl name="inherited"> <entry principal="Administrator" permission="Everything" grant="true"/> <entry principal="members" permission="Read" grant="true"/> </acl> </access-control> </system> <schema xmlns:supnxp16860="http://www.nuxeo.org/ecm/project/schemas/vdutat-sandbox-710-nuxeo/supnxp16860" name="supnxp16860"></schema> <schema xmlns:file_schema="http://www.nuxeo.org/ecm/project/schemas/vdutat-sandbox-710-nuxeo/file_schema" name="file_schema"></schema> <schema xmlns:uid="http://project.nuxeo.com/geide/schemas/uid/" name="uid"> <uid:major_version><![CDATA[0]]></uid:major_version> <uid:minor_version><![CDATA[4]]></uid:minor_version> </schema> <schema xmlns:thumb="http://www.nuxeo.org/ecm/schemas/thumbnail" name="thumbnail"> <thumb:thumbnail> <encoding></encoding> <mime-type>image/png</mime-type> <filename>angularjs.png</filename> <data>d0c42277.blob</data> <digest>b7cf991174cda6ad6cf8ad00aa014bcd</digest> </thumb:thumbnail> </schema> <schema xmlns:file="http://www.nuxeo.org/ecm/schemas/file/" name="file"> <file:filename><![CDATA[angularjs.pdf]]></file:filename> <file:content> <encoding></encoding> <mime-type>application/pdf</mime-type> <filename>angularjs.pdf</filename> <data>9cdf7fda.blob</data> <digest>7780aa7d3d75459b74340e31ba3d820f</digest> </file:content> </schema> <schema xmlns:common="http://www.nuxeo.org/ecm/schemas/common/" name="common"> <common:size><![CDATA[8784260]]></common:size> <common:icon><![CDATA[/icons/pdf.png]]></common:icon> </schema> <schema xmlns:files="http://www.nuxeo.org/ecm/schemas/files/" name="files"> <files:files> <item> <file> <encoding></encoding> <mime-type>application/pdf</mime-type> <filename>/angularjs.pdf</filename> <data>289cc1a4.blob</data> <digest>7780aa7d3d75459b74340e31ba3d820f</digest> </file> <filename><![CDATA[/angularjs.pdf]]></filename> </item> <item> <file> <encoding></encoding> <mime-type>application/pdf</mime-type> <filename>blank.pdf</filename> <data>bc81ba87.blob</data> <digest>84e96476a8250179222453750a2df8ad</digest> </file> <filename><![CDATA[blank.pdf]]></filename> </item> </files:files> </schema> <schema xmlns:dc="http://www.nuxeo.org/ecm/schemas/dublincore/" name="dublincore"> <dc:creator><![CDATA[Administrator]]></dc:creator> <dc:modified><![CDATA[2016-11-23T19:22:20.00Z]]></dc:modified> <dc:lastContributor><![CDATA[Administrator]]></dc:lastContributor> <dc:created><![CDATA[2016-11-23T19:04:19.00Z]]></dc:created> <dc:title><![CDATA[angularjs.pdf]]></dc:title> <dc:subjects/> <dc:contributors> <item><![CDATA[Administrator]]></item> </dc:contributors> </schema> <schema xmlns:relatedtext="http://www.nuxeo.org/ecm/schemas/relatedtext/" name="relatedtext"> <relatedtext:relatedtextresources/> </schema> </document>