jubos / fake-s3

A lightweight server clone of Amazon S3 that simulates most of the commands supported by S3 with minimal dependencies
2.94k stars 355 forks source link

Fix list-objects returning nothing after restarting #220

Closed camjackson closed 6 years ago

camjackson commented 6 years ago

Currently if fake-s3 is restarted, it always returns an empty response for the list-objects action. However, the objects are still there and can be fetched with get-object if you already know the key.

This PR is similar to this one, but including the extra fixes in comments from @Allactaga and @mark2997.

camjackson commented 6 years ago

Thanks for your feedback @jubos! I actually made this PR from @saltzmanjoelh's fork (I didn't even know you could do a PR from a repo you don't own), which means I'm not able to push more code in order to amend this commit.

Instead I've opened a new PR, #221, which hopefully addresses your comments, and I'll close this one.