locked
CloudBlobContainer.ListBlobs is returning incorrect data RRS feed

  • Question

  • When I make a call to retrieve the list of blobs for my container I am getting truncated results when there is a blob which path contains additional "/". Example:

    http://blobstorage.blob.core.windows.net/test/page/2/language/en-us/test.txt
    http://blobstorage.blob.core.windows.net/test/test2.txt

    will only return one blob with a path of

    http://blobstorage.blob.core.windows.net/test/page/ and will ignore the second blob

    Now, if I had the following:

    http://blobstorage.blob.core.windows.net/test/test.txt
    http://blobstorage.blob.core.windows.net/test/test2.txt

    It would return me the two blobs with their full paths.

    Is this behavior expected? How to work around it?

    Thanks,
    Sergio

     

     

     

    Friday, October 1, 2010 8:38 PM

Answers

  • You should evaluate the behavior you observe in light of the information on "traversing the Blob namespace" on this MSDN page. The / is acting as a delimiter and the Azure Blob Service is mimicking the traversal of a hierarchy. As in all these things I recommend the use of Fiddler because looking at the raw response from the storage service gives you a better idea of what is happening - e.g. is there a <NextMarker> element.
    Friday, October 1, 2010 9:00 PM
    Answerer