azure-sdk-for-java icon indicating copy to clipboard operation
azure-sdk-for-java copied to clipboard

[BUG] The response `The requested URI does not represent any resource on the server.` is not helpful when the blob name is `null`

Open prabinpaudel-mfc opened this issue 2 years ago • 1 comments

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

prabinpaudel-mfc avatar Jun 28 '24 16:06 prabinpaudel-mfc

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

joshfree avatar Jul 08 '24 17:07 joshfree