aws-s3 icon indicating copy to clipboard operation
aws-s3 copied to clipboard

:marker option no longer seems to work with AWS::S3::Bucket.objects()

Open apurvis opened this issue 12 years ago • 1 comments
trafficstars

These both return the same set of 1000 elements, despite all filenames starting with 'p' and using 'q' as the :marker option.

ruby-1.9.3-p125 :012 > AWS::S3::Bucket.objects(@bucket_label, :prefix => @remote_path).first => #<AWS::S3::S3Object:0x193416160 '/lumos-data-dump-prod01/reports/purchase-events/part-00000'>

ruby-1.9.3-p125 :013 > AWS::S3::Bucket.objects(@bucket_label, :prefix => @remote_path, :marker => "q").first => #<AWS::S3::S3Object:0x196253020 '/lumos-data-dump-prod01/reports/purchase-events/part-00000'>

apurvis avatar Nov 26 '12 19:11 apurvis

Actually, this is not a bug, but more that the behavior was unexpected.

If you use the :prefix option to list a bucket's contents, you must set the :marker to :prefix + "/" + :marker.

Sort of unexpected behavior but not a bug per se.

apurvis avatar Nov 26 '12 20:11 apurvis