aws-s3
aws-s3 copied to clipboard
:marker option no longer seems to work with AWS::S3::Bucket.objects()
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'>
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.