The parseHeaders in xhrHttpsClient.ts and xhrHttpClient.ts is not strong enough #11581
Closed
1 of 6 tasks
Labels
Azure.Core
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
Describe the bug
The whitespace after colon in http header is optional. But the function parseHeaders in xhrHttpsClient.ts and and xhrHttpClient.ts requires spaces.
If no space after colon like this
The first char in value of header will be cut down.
It will makes header broken and some thing wrong.
The cordova-plugin-wkwebview-file-xhr is a library hosted by Oracle that helps Cordova users to solving CORS issue. It polyfilled the function XMLHttpRequest.getAllResponseHeaders() and wrapped http request. but the return value of polyfilled
getAllResponseHeaders()
have no space after colon. it makes@azure/storage-blob
upload failed.I have created an issue for Oracle oracle/cordova-plugin-wkwebview-file-xhr#68
But I think
@azure/storage-blob
also needs to improve to avoid such unsoundness.To Reproduce
Steps to reproduce the behavior:
uploadBrowserData()
Expected behavior
Uploaded without errors.
The text was updated successfully, but these errors were encountered: