Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-20325

Documents with % and spaces version download issue.

    Details

    • 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.

        Attachments

          Activity

            People

            • Assignee:
              custeng Customer Engineering
              Reporter:
              arome Andrew Rome
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: