Skip to content

Downloads from a guest drive don’t work #1782

@Chouhartem

Description

@Chouhartem

Description

Download a file from a guest (not connected) drive seems to be broken.

Steps to reproduce

  1. Open CryptPad as a guest (e.g., in private browsing)
  2. Create a pad (for instance code, but any kind of document)
  3. Go back on your guest drive and right click on your newly created file, then ”Download”
  4. Nothing happens (following error is raised in the console log)

Alternatively, going to your profile and downloading your drive results in a .zip file containing an empty drive folder.

Relevant logs

Uncaught TypeError: filename.replace is not a function
    fixFileName https://cryptpad.fr/common/common-util.js?ver=2024.12.0-3:299
    todo https://cryptpad.fr/common/drive-ui.js?ver=2024.12.0-3:4743
    downloadFolder https://cryptpad.fr/common/drive-ui.js?ver=2024.12.0-3:4762
    addContextEvent https://cryptpad.fr/common/drive-ui.js?ver=2024.12.0-3:4935
    jQuery 2
        dispatch
        handle

Expected behavior

Downloading files from the guest drive should work as it does on regular accounts. Note that from an opened document, it is possible to export them (e.g. in markdown for code).

Which operating system are you using?

Linux/BSD/UNIX

What browsers are you seeing the problem on?

Mozilla Firefox, Google Chrome

Extensions

Not relevant.

Version

2024.12.0

Metadata

Metadata

Assignees

Labels

BugThere is a problem in our source codeDriveAnything related to CryptPad interface, not apps

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions