Skip to content

File download in Resource Manager #5551

@ssanscar

Description

@ssanscar

Description of bug

We can download files with the Resource Manager that names contains spaces, accents or special characters like parenthesis but the names of the downloaded files are renamed with underscore at the beginning and at the end of files.

Files without spaces, accents or special characters are downloaded successfully with the same name.

For the files with accents, the downloaded names is really weird like this:
=utf-8_B_UmFwcG9ydCBkdSBqdXJ5IHNvdXRlbmFuY2UgZGUgdGjDqHNlLnBkZg===.pdf

But, file name will always start with _=utf-8

Steps to reproduce

List the precise steps to reproduce the bug:

  1. Go to 'Persona Bar'.
  2. Click on 'Manage' and 'Site Assets'.
  3. Scroll folders to find file with spaces, accents or special characters. If you can't find files like that, just rename an existing file with the 'Edit' option of the 'Resource Manager' by a right-click on the existing file.
  4. After that, download the file with the 'Download' option on the 'Resource Manager' tools bar or by a right-click on the file.

Current behavior

The downloaded file can be open on the desktop but we need to rename it if we would like that Windows recognize the type of file for open the good associated application of the downloaded file.

Expected behavior

Conserve the name of the file.

Screenshots

image

Error information

No errors.

Additional context

I tried with a lot of files.

If I have accents, spaces, or special characters, I have the issue. But if my files are no spaces, etc. the file name downloaded is right.

If I rename the file under the Resource Manager without spaces, etc. the file name downloaded is right. Conversely, if I rename the file under the Resource Manager with a space, etc. the file name downloaded has the issue.

I also tried with a new Uploaded file, and I have the same issue.

Affected version

  • 09.11.01 latest supported release

Affected browser

  • Chrome
  • Firefox: names are good with spaces and special characters but the issue exist with weird name for a file with accents
  • Microsoft Edge (Classic)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions