johnnyhalife / waz-storage

A simple implementation of Windows Azure Storage API for Ruby, inspired by the S3 gems and self experience of dealing with queues. The major goal of the whole gem is to enable ruby developers [like me =)] to leverage Windows Azure Storage features and have another option for cloud storage.
http://waz-storage.heroku.com
MIT License
40 stars 21 forks source link

Only Retrieves Containers it Creates #4

Closed buddylindsey closed 14 years ago

buddylindsey commented 14 years ago

I have been trying to work with blobs. However it seems that this library only seems to be able to retrieve containers it creates. I have 3 containers on my account and the only that ca be retrieved when I do Container.find is the one I created using this library. Was curios if this is a known issue or something that is on purpose.

johnnyhalife commented 14 years ago

Hey percent20,

Can you send me more details about this, what will ideally work is the list of containers that you have (an screenshot from the browser will work too) just to make sure this isn't an issue related to naming of those containers. Also if you can specify which container(s) are being retrieved and which not.

This is not a known issue and I'll be happy to help you on this fixing it or giving you a workaround.

thanks for reporting! ~johnny

buddylindsey commented 14 years ago

Here is a link to the code I wrote as a test case.

http://pastebin.com/Xn2LDwEz

Here is an image of the output this produces. It lists all the containers I have which are site,show,temp.

http://www.flickr.com/photos/buddylindsey/5015167580/

If you need more info just let me know.

johnnyhalife commented 14 years ago

I'm not being able to reproduce it...

Quick question: which tool did you use to create the containers?

buddylindsey commented 14 years ago

I used cerebrata's tool. Could it be a date issue? The containers were created around 7/20/10

http://www.cerebrata.com/Products/CloudStorageStudio/Default.aspx

johnnyhalife commented 14 years ago

This is fixed on the v1.0.2.

It was a problem related to an additional parameter required by the latest version of the Windows Azure Storage API, most of the third-parties are using 2009-09-19 and once a blob/container gets that version it needs another parameter called "restype" with the "X-MS-Version" header.

Now it's working! Thanks for reporting!

buddylindsey commented 14 years ago

Thanks for the diligence and getting it to work.