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

Incorrect behavior when using Prefix #233

Open mikemiles-dev opened 6 years ago

mikemiles-dev commented 6 years ago

On S3 when using paginatior to list files if you pass the prefix key but a blank value you get back the contents key in the response however on fake s3 if you do the same you get a common prefix key in the response and no contents.

abrugh commented 6 years ago

To elaborate this is with boto3's list_objects, paginator.paginate function. If a delimiter and prefix of '' are passed to the paginate function real s3 works but fake-s3 does not. The work around seems to be to not pass those args to paginate.