-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XML deserialization error during simple list blob #1092
Comments
Thanks for reporting @mdrach, It looks like the error is good and includes everything needed to reproduce and unit test. I see a utf8 bom followed by xml.
Just doing a quick unescape & format in VS Code, I get: <?xml version="1.0" encoding="utf-8"?>
<EnumerationResults ServiceEndpoint="https://sisuautomatedtest.blob.core.windows.net/" ContainerName="lowlatencyrequests">
<Prefix>get-most-recent-key-5/</Prefix>
<Delimiter>/</Delimiter>
<Blobs>
<Blob>
<Name>get-most-recent-key-5/2021-08-04-testfile1</Name>
<Properties>
<Creation-Time>Tue, 13 Sep 2022 08:20:48 GMT</Creation-Time>
<Last-Modified>Tue, 13 Sep 2022 08:20:48 GMT</Last-Modified>
<Etag>0x8DA9560DD170CFD</Etag>
<Content-Length>19</Content-Length>
<Content-Type>text/plain</Content-Type>
<Content-Encoding />
<Content-Language />
<Content-CRC64 />
<Content-MD5>3X/+gWTy92gIJFXx57gLYA==</Content-MD5>
<Cache-Control />
<Content-Disposition />
<BlobType>BlockBlob</BlobType>
<AccessTier>Hot</AccessTier>
<AccessTierInferred>true</AccessTierInferred>
<LeaseStatus>unlocked</LeaseStatus>
<LeaseState>available</LeaseState>
<ServerEncrypted>true</ServerEncrypted>
</Properties>
<OrMetadata />
</Blob>
<BlobPrefix>
<Name>get-most-recent-key-5/2021-08-04T21:48:48.592953Z-15839722113750148182/</Name>
</BlobPrefix>
<Blob>
<Name>get-most-recent-key-5/2021-09-04-testfile2</Name>
<Properties>
<Creation-Time>Tue, 13 Sep 2022 08:07:01 GMT</Creation-Time>
<Last-Modified>Tue, 13 Sep 2022 08:19:21 GMT</Last-Modified>
<Etag>0x8DA9560A916932D</Etag>
<Content-Length>19</Content-Length>
<Content-Type>text/plain</Content-Type>
<Content-Encoding />
<Content-Language />
<Content-CRC64 />
<Content-MD5>b0CPJB6eDfKUzzW7dlboKQ==</Content-MD5>
<Cache-Control />
<Content-Disposition />
<BlobType>BlockBlob</BlobType>
<AccessTier>Hot</AccessTier>
<AccessTierInferred>true</AccessTierInferred>
<LeaseStatus>unlocked</LeaseStatus>
<LeaseState>available</LeaseState>
<ServerEncrypted>true</ServerEncrypted>
</Properties>
<OrMetadata />
</Blob>
<Blob>
<Name>get-most-recent-key-5/2022-08-04-testfile3</Name>
<Properties>
<Creation-Time>Tue, 13 Sep 2022 08:07:01 GMT</Creation-Time>
<Last-Modified>Tue, 13 Sep 2022 08:19:21 GMT</Last-Modified>
<Etag>0x8DA9560A91F9296</Etag>
<Content-Length>34</Content-Length>
<Content-Type>text/plain</Content-Type>
<Content-Encoding />
<Content-Language />
<Content-CRC64 />
<Content-MD5>1F1MssyZOvhY4OZevHWEsw==</Content-MD5>
<Cache-Control />
<Content-Disposition />
<BlobType>BlockBlob</BlobType>
<AccessTier>Hot</AccessTier>
<AccessTierInferred>true</AccessTierInferred>
<LeaseStatus>unlocked</LeaseStatus>
<LeaseState>available</LeaseState>
<ServerEncrypted>true</ServerEncrypted>
</Properties>
<OrMetadata />
</Blob>
</Blobs>
<NextMarker />
</EnumerationResults> Then it is just a matter of creating a test case that tries to desialize to a |
Hello, I'm writing a basic Azure client and can't seem to list blobs from a container without running into an xml parsing issue:
Here's the error:
Here's the code I'm running:
I'm using
azure_storage
andazure_storage_blobs
0.6 (commitf9ec73563f615553ca097b0457bed8347ad2227d
). The same bug occurs in 0.5 as well.The file structure of my blob store looks like this:
I just used the following command to upload these files:
Below are a zipfile with the code used to repro and a zipfile with the contents of my Azure blob store container.
repro-storage-blobs-issue.zip
get-most-recent-key-5.zip
The text was updated successfully, but these errors were encountered: