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 #3341

Merged
merged 1 commit into from Dec 6, 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 #734 ↗︎

0 25 0 0 Flakiness 0

Details:

Fix opening file after rename in COOL
Project: Richdocuments Commit: c48a9cf0eb
Status: Passed Duration: 02:12 💡
Started: Dec 6, 2023 10:29 AM Ended: Dec 6, 2023 10:31 AM

Review all test suite changes for PR #3341 ↗︎

@juliushaertl juliushaertl added bug Something isn't working 3. to review Ready to be reviewed labels Dec 6, 2023
@juliushaertl juliushaertl merged commit c80452e into stable26 Dec 6, 2023
36 checks passed
@juliushaertl juliushaertl deleted the private/eszkadev/stable-26-fix-rename branch December 6, 2023 13:34
@eszkadev
Copy link
Contributor Author

eszkadev commented Dec 6, 2023

should I prepare PR for stable27 and master too?

@juliushaertl
Copy link
Member

In Nextcloud 27 visible name doesn't contain %20 but still doesn't work.
should I prepare PR for stable27 and master too?

That would be appreciated if it also works there

The code paths on master might be different as we rewrote the files app in parts with new frontend code in the server itself. Feel free to also just open an issue then I can have a closer look there.

@eszkadev
Copy link
Contributor Author

eszkadev commented Dec 6, 2023

added port for stable27: #3343
For stable28 and master my fix doesn't work. It doesn't update file name on the file list at all...
Created issue: #3344

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.

None yet

2 participants