Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Rewind file in Storage::Fog if bucket does not exist #2573

Closed

Conversation

natesholland
Copy link
Contributor

There was a bug in the code where if you created a bucket the file would
get read but not rewind on the first pass through (when the bucket
didn't exist). So when we went into the retry logic the file would
already be read and zero bytes would get copied over from the file. This
fixes that by rewinding the file during the retry so it gets correctly
copied over the second time around.

This is the same patch as #2572 but into the v4.3 branch. My project is
currently on 4.3.7 so I would appreciate the port down into the v4.3 branch
as well as into master.

There was a bug in the code where if you created a bucket the file would
get read but not rewind on the first pass through (when the bucket
didn't exist). So when we went into the retry logic the file would
already be read and zero bytes would get copied over from the file. This
fixes that by rewinding the file during the retry so it gets correctly
copied over the second time around.
@natesholland natesholland force-pushed the file_rewind_bug_v4.3 branch from 3c10e80 to 958d95b Compare March 8, 2018 17:39
@sidraval
Copy link
Contributor

sidraval commented Mar 9, 2018

Closing as a duplicate #2572

@sidraval sidraval closed this Mar 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants