[MNT-20325] Documents with % and spaces version download issue. Created: 31-Jan-19  Updated: 05-May-20  Resolved: 04-Feb-19

Status: Closed
Project: Service Packs and Hot Fixes
Component/s: Share Application
Affects Version/s: 5.2.2.2, 5.2.4, 6.0, 6.1.N
Fix Version/s: 5.2.6, 6.1.1, 6.2, 6.0.N, ACS 201910-EA

Type: Service Pack Request
Reporter: Andrew Rome [X] (Inactive) Assignee: Closed Bugs
Resolution: Fixed Votes: 0
Labels: triaged
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to by MNT-21552 AGS / RM module causes documents with... Verified
Bug Priority:
Category 2
ACT Numbers:

00983875

Sprint: O'Brien
Work Funnel End: 2019-02
Story Points: 2
Prioritization Score: 3.825

 Description   

Customer reported that documents with "%" and "spaces" in filename with versions could not download the previous version.

Steps to replicate:

  1. Create a word document called "name with % in it break alfresco %.docx and upload to share.
  2. Then upload a version to it of the same file and assign either minor or major version.
  3. Try and download the previous version should result in a HTTP ERROR 400.

I found that the file name is not getting URL encoded properly, inspecting broken link with developers tools I see the following:

<a href="http://10.245.50.119:8080/share/proxy/alfresco/api/node/content/versionStore/version2Store/f0dd2369-307d-4194-9e39-96a7ee783e5c/name with % in it break alfresco % maybe.docx?a=true" class="download" title="Download" id="yui-gen41">&nbsp;</a>

If I take the file "name with % in it break alfresco % maybe.docx" , then URL encode it to be "name+with+%25+in+it+break+alfresco+%25+maybe.docx", paste back into developer tools replacing non-encoded file name the link worked.


Generated at Thu Jul 09 10:09:50 BST 2020 using JIRA 7.6.3#76005-sha1:8a4e38d34af948780dbf52044e7aafb13a7cae58.