Skip to content
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

[BUG][JAVA SDK] CloudBlobClient.ListBlobsSegmented Method list the deleted files too. #43103

Open
3 tasks
abhishekpankaj54 opened this issue Nov 26, 2024 · 4 comments
Assignees
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)

Comments

@abhishekpankaj54
Copy link

abhishekpankaj54 commented Nov 26, 2024

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
BlobPathConflictThe 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
BlobPathConflictThe 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):

  • OS: [e.g. iOS]
  • IDE: [e.g. IntelliJ]
  • Library/Libraries: [e.g. com.azure:azure-core:1.16.0 (groupId:artifactId:version)]
  • Java version: [e.g. 8] java 17
  • App Server/Environment: [e.g. Tomcat, WildFly, Azure Function, Apache Spark, Databricks, IDE plugin or anything special] azure-storage-8.6.6
  • Frameworks: [e.g. Spring Boot, Micronaut, Quarkus, etc]

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:

  • verbose dependency tree (mvn dependency:tree -Dverbose)
  • exception message, full stack trace, and any available logs

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

  • Bug Description Added
  • Repro Steps Added
  • Setup information Added
@github-actions github-actions bot added 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) labels Nov 26, 2024
Copy link

Copy link

Thank you for your feedback. Tagging and routing to the team member best able to assist.

@abhishekpankaj54
Copy link
Author

@ibrahimrabab , Can we have an update, please?

@abhishekpankaj54
Copy link
Author

abhishekpankaj54 commented Nov 28, 2024

@ibrahimrabab , Please check this issue. it's a blocker for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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)
Projects
None yet
Development

No branches or pull requests

2 participants