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 opening file after rename in COOL #3343

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

eszkadev
Copy link
Contributor

@eszkadev eszkadev commented Dec 6, 2023

There is a bug which happens after renaming a file inside Collabora Online (using fiels on the headerbar).

  1. Open any document
  2. Rename it so it will contain spaces
  3. Close document
  4. Try to open renamed document from the list Result: error, cannot find file

Notice that name was encoded so space become %20.
If you look at requests - the name of a file become encoded second time in one of them so it failed.
eg. file '1 1.odt' after rename does request:
http://192.168.0.108/remote.php/dav/files/admin/1%25201.odt

In Nextcloud 27 visible name doesn't contain %20 but still doesn't work.

There is a bug which happens after renaming a file inside
Collabora Online (using fiels on the headerbar).

1. Open any document
2. Rename it so it will contain spaces
3. Close document
4. Try to open renamed document from the list
Result: error, cannot find file

Notice that name was encoded so space become %20.
If you look at requests - the name of a file become
encoded second time in one of them so it failed.
eg. file '1 1.odt' after rename does request:
http://192.168.0.108/remote.php/dav/files/admin/1%25201.odt

In Nextcloud 27 visible name doesn't contain %20 but still doesn't work.

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Copy link

cypress bot commented Dec 6, 2023

Passing run #736 ↗︎

0 31 0 0 Flakiness 0

Details:

Fix opening file after rename in COOL
Project: Richdocuments Commit: 3a61180dcf
Status: Passed Duration: 02:21 💡
Started: Dec 6, 2023 5:47 PM Ended: Dec 6, 2023 5:49 PM

Review all test suite changes for PR #3343 ↗︎

@juliushaertl juliushaertl merged commit a3b41bb into stable27 Dec 7, 2023
36 checks passed
@juliushaertl juliushaertl deleted the private/eszkadev/stable-27-fix-rename branch December 7, 2023 12:40
@juliushaertl juliushaertl added bug Something isn't working 3. to review Ready to be reviewed labels Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Ready to be reviewed bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants