[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.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 (Inactive)
Resolution: Fixed Votes: 0
Labels: triaged
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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


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


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=" 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 Sat Feb 27 10:36:33 GMT 2021 using Jira 7.13.15#713015-sha1:7c5ddd2c3e1709974ae9c48c17df8edd3919fe2c.