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] The response The requested URI does not represent any resource on the server. is not helpful when the blob name is null #40926

Open
3 tasks
prabinpaudel-mfc opened this issue Jun 28, 2024 · 1 comment · May be fixed by #41099
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. 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

@prabinpaudel-mfc
Copy link

Describe the bug
The response The requested URI does not represent any resource on the server. is not helpful when the blob name is null

Exception or Stack Trace
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: com.azure.storage.blob.models.BlobStorageException: Status code 400, "InvalidUriThe requested URI does not represent any resource on the server.

To Reproduce
Pass the blob name as null
BlobClient blobClient = blobContainerClient.getBlobClient(null);

Code Snippet
BlobClient blobClient = blobContainerClient.getBlobClient(null);

Expected behavior
The blob name is null

Screenshots
If applicable, add screenshots to help explain your problem.

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]
  • App Server/Environment: [e.g. Tomcat, WildFly, Azure Function, Apache Spark, Databricks, IDE plugin or anything special]
  • 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 customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jun 28, 2024
@joshfree joshfree added the Storage Storage Service (Queues, Blobs, Files) label Jul 8, 2024
@github-actions github-actions bot removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jul 8, 2024
@joshfree
Copy link
Member

joshfree commented Jul 8, 2024

Thanks for the feedback, @prabinpaudel-mfc - someone from the Storage team will follow up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. 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

Successfully merging a pull request may close this issue.

2 participants