[BUG][JAVA SDK] CloudBlobClient.ListBlobsSegmented Method list the deleted files too. #43103
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Storage
Storage Service (Queues, Blobs, Files)
Describe the bug
Our application uses the Method ListBlobsSegmented to list all the files in a container at a specific path. We observed that this method also lists the deleted files every time. so when we go for deletion of the files based on the output received by the call(ListBlobsSegmented) Azure throws an error mentioned below.
BlobBatchStorageException: Error Code: BlobPathConflict, Request Status Code: 409, Service Message
BlobPathConflict
The specified path, or an element of the path, exists and its resource type is invalid for this operation.RequestId:25930ad6-301e-0078-4a6a-1f327a1e29c1
Time:2024-10-16T01:28:03.9939930Z^M
Exception or Stack Trace
BlobBatchStorageException: Error Code: BlobPathConflict, Request Status Code: 409, Service Message
BlobPathConflict
The specified path, or an element of the path, exists and its resource type is invalid for this operation.RequestId:25930ad6-301e-0078-4a6a-1f327a1e29c1
Time:2024-10-16T01:28:03.9939930Z^M
To Reproduce
We found the error in our customer environment.
Code Snippet
cloudBlobContainer.listBlobsSegmented(prefix, true, null, null, null, null, null);
cloudBlobContainer.listBlobsSegmented(prefix, true, null, null, token, null, null);
Expected behavior
It should not list the deleted files.
Screenshots
When we checked the Portal, there were no files present, but when we made the call, it listed the files.
Setup (please complete the following information):
If you suspect a dependency version mismatch (e.g. you see
NoClassDefFoundError
,NoSuchMethodError
or similar), please check out Troubleshoot dependency version conflict article first. If it doesn't provide solution for the problem, please provide:mvn dependency:tree -Dverbose
)Additional context
Add any other context about the problem here.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: