Kelsonk / as3awss3lib

Automatically exported from code.google.com/p/as3awss3lib
0 stars 0 forks source link

listObjects ignores prefix and maxKeys #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
current implementation (rev 10) of AWSS3>>listObjects does not take into
account the prefix,marker or maxKeys. Moreover, the signature should also
have a delimiter parameter.

S3 Docs:

GET ?prefix=prefix;marker=marker;max-keys=max-keys;delimiter=delimiter

I am working on a patch for this and will attach it soon.

Original issue reported on code.google.com by ernest.m...@gmail.com on 24 Jun 2009 at 9:23

GoogleCodeExporter commented 9 years ago
I am also stuck with this part of this project.The amazon S3 has provided a 
nice 
implementation of listing objects based on object keys in a single bucket.

http://docs.amazonwebservices.com/AmazonS3/latest/index.html?RESTAccessPolicy.ht
ml

But there is no way to pass these(prefix,marker,maxKeys,delimiter etc) 
parameters.

It would be great if someone has already found out a way and post the code to 
PUT 
and GET objects with specific keys

Original comment by pallabac...@gmail.com on 7 Sep 2009 at 12:10

GoogleCodeExporter commented 9 years ago
After line 149 of AWSS3.as add the following

var urlVars:URLVariables =  new URLVariables();
urlVars["marker"] = marker == null ? "" : marker;
urlVars["delimiter"] = "/";
urlVars["prefix"] = prefix == null ? "" : prefix;
req.data = urlVars;

Original comment by jlaudens...@gmail.com on 12 Jan 2010 at 6:10

GoogleCodeExporter commented 9 years ago
Thanks so much for posting the fix, 'jlaudens...' :)

Original comment by futuresc...@gmail.com on 22 Jan 2012 at 11:56