-
Notifications
You must be signed in to change notification settings - Fork 248
Closed
Description
We have hit (a possibly undocumented) behavior of Azure List Blobs operation returning empty node:
<?xml version="1.0" encoding="utf-8"?>
<EnumerationResults ServiceEndpoint="https://myaccount.blob.core.windows.net/" ContainerName="mycontainer"> <Marker>2!212!MDAwMTE1IWRhdGEvZmRiYmFja3VwL2t2cmFuZ2VzL3NuYXBzaG90LjAwMDAwNjYyMjQxNDYyNTg5Mi8xNS9yYW5nZSw2NjIzMDE4MTQ4MjUzLGVmNTIyNmU3NDZmZTQ5MWExOTZhNjE5YTA0YmM2MmJjLDEwNDg1NzYhMDAwMDI4ITk5OTktMTItMzFUMjM6NTk6NTkuOTk5OTk5OVoh</Marker>
<MaxResults>1000</MaxResults>
<Delimiter>/</Delimiter>
<Blobs />
<NextMarker>2!212!MDAwMTE0IWRhdGEvZmRiYmFja3VwL2t2cmFuZ2VzL3NuYXBzaG90LjAwMDAwNjYyNDk3Mjg5MTI4Ny80L3JhbmdlLDY2MjUzNjM5MjY4MzMsMjgxNzgxOTI4ZGJkMjRhN2FmZTNiNTJkZTFhZjFkOGUsMTA0ODU3NiEwMDAwMjghOTk5OS0xMi0zMVQyMzo1OTo1OS45OTk5OTk5WiE-</NextMarker>
</EnumerationResults>"
This causes
java.util.NoSuchElementException: null
at java.base/java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:760)
at java.base/java.util.LinkedHashMap$LinkedKeyIterator.next(LinkedHashMap.java:780)
at com.google.common.collect.Iterators.getLast(Iterators.java:876)
at com.google.common.collect.Iterables.getLast(Iterables.java:794)
at org.gaul.s3proxy.S3ProxyHandler.handleBlobList(S3ProxyHandler.java:1464)
at org.gaul.s3proxy.S3ProxyHandler.doHandle(S3ProxyHandler.java:672)
at org.gaul.s3proxy.S3ProxyHandlerJetty.handle(S3ProxyHandlerJetty.java:76)
at org.gaul.shaded.org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
Comparing with debug output of az storage blob list
, it seems this is OK and azure-cli simply issues a next request.
Thanks
Petr
Metadata
Metadata
Assignees
Labels
No labels