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(sharing): use correct save path when renaming #4378

Merged
merged 1 commit into from
Jan 9, 2025
Merged

fix(sharing): use correct save path when renaming #4378

merged 1 commit into from
Jan 9, 2025

Conversation

elzody
Copy link
Contributor

@elzody elzody commented Jan 9, 2025

Summary

When accessing a publicly shared folder as a logged-in user with edit permissions and attempting to rename a file from within Collabora, the file would seemingly disappear upon a page refresh. It was actually being saved to the owner's root folder (so not entirely disappearing, just being moved out of the shared folder).

It seems to have been caused by a previous pull request which introduced logic to determine the proper save path for a file. We instead just use the file path now if it is a request for a name change, instead of doing some unneeded checks for public shares, etc.

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Documentation (manuals or wiki) has been updated or is not required

@elzody elzody requested a review from juliusknorr as a code owner January 9, 2025 14:31
@elzody elzody self-assigned this Jan 9, 2025
@elzody elzody added the 3. to review Ready to be reviewed label Jan 9, 2025
@elzody
Copy link
Contributor Author

elzody commented Jan 9, 2025

/backport to stable30

@elzody elzody merged commit e27501d into main Jan 9, 2025
69 checks passed
@elzody elzody deleted the fix/4370 branch January 9, 2025 18:43
@juliusknorr
Copy link
Member

Looks good, thanks for also extending the test cases 👍

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collaborative Editing - Renaming file makes the removes the file from the folder
3 participants