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

fix(files): Do not encode the path twice (and do not use undefined method) #41329

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Nov 7, 2023

Summary

Fixes files being not able to be moved, currently the error is "encodePath not defined" but adding encodePath will break as well because then file names are encoded twice, e.g. in the following example it would fail because "Neuer Ordner" would be encoded to "Neuer%20Ordner" and then to "Neuer%2520Ordner".

Before

vokoscreenNG-2023-11-07_16-50-56.mp4

After

vokoscreenNG-2023-11-07_16-50-16.mp4

Checklist

…thod)

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux requested review from skjnldsv, a team, nfebe, sorbaugh and Pytal and removed request for a team November 7, 2023 15:53
@skjnldsv
Copy link
Member

skjnldsv commented Nov 7, 2023

Hum, weird.
We had to do it because it was misbehaving in the first place 🤔

EDIT: ah, right, I left the encodeURI below 🤦

@Pytal Pytal added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Nov 7, 2023
@Pytal Pytal merged commit 2769b99 into master Nov 7, 2023
@Pytal Pytal deleted the fix/files-copy-file branch November 7, 2023 18:00
@blizzz blizzz mentioned this pull request Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug feature: files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants