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

GH-9294: Set permissions to target file on rename #9300

Merged
merged 2 commits into from
Jul 8, 2024

Conversation

artembilan
Copy link
Member

Fixes: #9294

When the deleteSourceFiles property of FileWritingMessageHandler is true, the chmod is not set on the target file.

  • Fix FileWritingMessageHandler.handleFileMessage() logic to setPermissions(resultFile) after move operation

Auto-cherry-pick to 6.3.x & 6.2.x

Fixes: spring-projects#9294

When the `deleteSourceFiles` property of `FileWritingMessageHandler` is `true`, the `chmod` is not set on the target file.

* Fix `FileWritingMessageHandler.handleFileMessage()` logic to `setPermissions(resultFile)` after `move` operation

**Auto-cherry-pick to `6.3.x` & `6.2.x`**
@artembilan artembilan requested a review from sobychacko July 3, 2024 20:14
@artembilan artembilan merged commit 3e71ea5 into spring-projects:main Jul 8, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When deleteSourceFiles is true, the setPermissions method of FileWritingMessageHandler should be called.
1 participant