-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10693 from owncloud/thumbnails_fix_fs_race
fix: use a tmp file and rename to prevent a possible race condition
- Loading branch information
Showing
2 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Bugfix: Fix possible race condition when a thumbnails is stored in the FS | ||
|
||
A race condition could cause the thumbnail service to return a thumbnail | ||
with 0 bytes or with partial content. In order to fix this, the service will | ||
create a temporary file with the contents and then rename that file to its | ||
final location. | ||
|
||
https://github.com/owncloud/ocis/pull/10693 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters