Skip to content

[BUG] %2FJ consider as illegal char #48601

@Krishnaa336

Description

@Krishnaa336

When uploading a ZIP file to Azure Blob Storage, the file upload itself succeeds, but the call to setHttpHeaders() fails with an “illegal characters in URL path” error. This only happens when the file name starts with an uppercase J. The same flow works as expected when the file name starts with a lowercase j.

The URI contain illegal characters: /containerName/folderName%2Fdev%2F2026-03-26%2FJL810098.zip?comp=properties

com.azure.storage.common.implementation.StorageImplUtils.sendRequest(StorageImplUtils.java:511)\r\n\tat com.azure.storage.blob.specialized.BlobClientBase.setHttpHeadersWithResponse(BlobClientBase.java:1832)\r\n\tat com.azure.storage.blob.specialized.BlobClientBase.setHttpHeaders(BlobClientBase.java:1788)\r\n\tat

Steps to reproduce the behavior:
BlobClient blobClient = container.getBlobClient(blobName);
try (InputStream in = Files.newInputStream(zipPath)) {
blobClient.upload(in, Files.size(zipPath), true);
blobClient.setHttpHeaders(new BlobHttpHeaders().setContentType("application/zip"));
}

  • OS: Windons
  • IDE: intellij
  • Library/Libraries: azure-storage-blob-12.31.2
  • Java version: 17

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.StorageStorage Service (Queues, Blobs, Files)customer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions