Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Hash in filename (e.g. #foo.docx) breaks web interface download #44855

Closed
4 of 8 tasks
wolfgang-braun opened this issue Apr 16, 2024 · 2 comments · Fixed by #46768
Closed
4 of 8 tasks

[Bug]: Hash in filename (e.g. #foo.docx) breaks web interface download #44855

wolfgang-braun opened this issue Apr 16, 2024 · 2 comments · Fixed by #46768
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 28-feedback bug feature: files
Milestone

Comments

@wolfgang-braun
Copy link

⚠️ This issue respects the following points: ⚠️

Bug description

Downloading a file that has a hash in the name doesn't work anymore when clicking on the file row.
Context menu / 3 dot menu -> download still works

Steps to reproduce

  1. Upload file #foo.docx
  2. Click on file row to open it (in this case download it as file)
  3. A file with the correct name is downloaded. It's corrupt because it has the following content:

This is the WebDAV interface. It can only be accessed by WebDAV clients such as the Nextcloud desktop sync client

This is because the UI tries to download the folder, not the file.
This might be because it ignores everything in the URL that comes after #

Note: This behavior can't be reproduced for PDFs when the PDF viewer is active.

Expected behavior

  1. Upload file '#foo.docx'
  2. Click on file row to open (in this case download) it
  3. A file with the correct name is downloaded. It's a copy of the uploaded file.

Installation method

Community Docker image

Nextcloud Server version

28

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

@wolfgang-braun wolfgang-braun added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Apr 16, 2024
@SubZero84
Copy link

SubZero84 commented Jun 8, 2024

Same when folder has # in name.

image image

@susnux
Copy link
Contributor

susnux commented Jul 25, 2024

Work around: Use the action (tree dot menu and then the "download" entry)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 28-feedback bug feature: files
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants