-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed bug where query params were being parsed incorrectly if an enco…
…ded comma was the query value (#17655)
- Loading branch information
1 parent
2f7d775
commit 09ffa84
Showing
4 changed files
with
141 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
112 changes: 112 additions & 0 deletions
112
...age-blob/src/test/resources/session-records/ContainerAPITestlistblobsprefixwithcomma.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
{ | ||
"networkCallRecords" : [ { | ||
"Method" : "PUT", | ||
"Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobsprefixwithcomma097102c4f575e414a74be?restype=container", | ||
"Headers" : { | ||
"x-ms-version" : "2020-02-10", | ||
"User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.7; Windows 10; 10.0)", | ||
"x-ms-client-request-id" : "4197dd95-684f-4280-af03-5754c699537a" | ||
}, | ||
"Response" : { | ||
"x-ms-version" : "2020-02-10", | ||
"Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", | ||
"ETag" : "0x8D88C040CD150A7", | ||
"Last-Modified" : "Wed, 18 Nov 2020 20:53:49 GMT", | ||
"retry-after" : "0", | ||
"Content-Length" : "0", | ||
"StatusCode" : "201", | ||
"x-ms-request-id" : "5a0b9c11-c01e-0073-35ec-bd7d3a000000", | ||
"Date" : "Wed, 18 Nov 2020 20:53:49 GMT", | ||
"x-ms-client-request-id" : "4197dd95-684f-4280-af03-5754c699537a" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "PUT", | ||
"Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobsprefixwithcomma097102c4f575e414a74be/javabloblistblobsprefixwithcomma199461a7d43fde3c03%2C%20javabloblistblobsprefixwithcomma235482222869197945", | ||
"Headers" : { | ||
"x-ms-version" : "2020-02-10", | ||
"User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.7; Windows 10; 10.0)", | ||
"x-ms-client-request-id" : "e98643a2-72d7-4436-89f2-2cdac3d230c2", | ||
"Content-Type" : "application/octet-stream" | ||
}, | ||
"Response" : { | ||
"x-ms-version" : "2020-02-10", | ||
"Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", | ||
"x-ms-content-crc64" : "6RYQPwaVsyQ=", | ||
"Last-Modified" : "Wed, 18 Nov 2020 20:53:50 GMT", | ||
"x-ms-version-id" : "2020-11-18T20:53:50.0957813Z", | ||
"retry-after" : "0", | ||
"StatusCode" : "201", | ||
"x-ms-request-server-encrypted" : "true", | ||
"Date" : "Wed, 18 Nov 2020 20:53:50 GMT", | ||
"Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", | ||
"ETag" : "0x8D88C040D212075", | ||
"Content-Length" : "0", | ||
"x-ms-request-id" : "5a0b9c51-c01e-0073-69ec-bd7d3a000000", | ||
"x-ms-client-request-id" : "e98643a2-72d7-4436-89f2-2cdac3d230c2" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "GET", | ||
"Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobsprefixwithcomma097102c4f575e414a74be?prefix=javabloblistblobsprefixwithcomma199461a7d43fde3c03%2C%20javabloblistblobsprefixwithcomma235482222869197945&restype=container&comp=list", | ||
"Headers" : { | ||
"x-ms-version" : "2020-02-10", | ||
"User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.7; Windows 10; 10.0)", | ||
"x-ms-client-request-id" : "3e79fbb3-6e16-43ac-b977-91dab3004419" | ||
}, | ||
"Response" : { | ||
"Transfer-Encoding" : "chunked", | ||
"x-ms-version" : "2020-02-10", | ||
"Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", | ||
"retry-after" : "0", | ||
"StatusCode" : "200", | ||
"x-ms-request-id" : "5a0b9c60-c01e-0073-74ec-bd7d3a000000", | ||
"Body" : "<?xml version=\"1.0\" encoding=\"utf-8\"?><EnumerationResults ServiceEndpoint=\"https://gapracanary.blob.core.windows.net/\" ContainerName=\"jtclistblobsprefixwithcomma097102c4f575e414a74be\"><Prefix>javabloblistblobsprefixwithcomma199461a7d43fde3c03, javabloblistblobsprefixwithcomma235482222869197945</Prefix><Blobs><Blob><Name>javabloblistblobsprefixwithcomma199461a7d43fde3c03, javabloblistblobsprefixwithcomma235482222869197945</Name><VersionId>2020-11-18T20:53:50.0957813Z</VersionId><IsCurrentVersion>true</IsCurrentVersion><Properties><Creation-Time>Wed, 18 Nov 2020 20:53:50 GMT</Creation-Time><Last-Modified>Wed, 18 Nov 2020 20:53:50 GMT</Last-Modified><Etag>0x8D88C040D212075</Etag><Content-Length>7</Content-Length><Content-Type>application/octet-stream</Content-Type><Content-Encoding /><Content-Language /><Content-CRC64 /><Content-MD5>wh+Wm18D0z1D4E+PE252gg==</Content-MD5><Cache-Control /><Content-Disposition /><LastAccessTime>Wed, 18 Nov 2020 20:53:50 GMT</LastAccessTime><BlobType>BlockBlob</BlobType><AccessTier>Hot</AccessTier><AccessTierInferred>true</AccessTierInferred><LeaseStatus>unlocked</LeaseStatus><LeaseState>available</LeaseState><ServerEncrypted>true</ServerEncrypted></Properties><OrMetadata /></Blob></Blobs><NextMarker /></EnumerationResults>", | ||
"Date" : "Wed, 18 Nov 2020 20:53:50 GMT", | ||
"x-ms-client-request-id" : "3e79fbb3-6e16-43ac-b977-91dab3004419", | ||
"Content-Type" : "application/xml" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "GET", | ||
"Uri" : "https://REDACTED.blob.core.windows.net?prefix=jtclistblobsprefixwithcomma&comp=list", | ||
"Headers" : { | ||
"x-ms-version" : "2020-02-10", | ||
"User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.7; Windows 10; 10.0)", | ||
"x-ms-client-request-id" : "3e01836f-8769-45a6-926e-d3df8cd56a2c" | ||
}, | ||
"Response" : { | ||
"Transfer-Encoding" : "chunked", | ||
"x-ms-version" : "2020-02-10", | ||
"Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", | ||
"retry-after" : "0", | ||
"StatusCode" : "200", | ||
"x-ms-request-id" : "5a0b9c6a-c01e-0073-7bec-bd7d3a000000", | ||
"Body" : "<?xml version=\"1.0\" encoding=\"utf-8\"?><EnumerationResults ServiceEndpoint=\"https://gapracanary.blob.core.windows.net/\"><Prefix>jtclistblobsprefixwithcomma</Prefix><Containers><Container><Name>jtclistblobsprefixwithcomma097102c4f575e414a74be</Name><Properties><Last-Modified>Wed, 18 Nov 2020 20:53:49 GMT</Last-Modified><Etag>\"0x8D88C040CD150A7\"</Etag><LeaseStatus>unlocked</LeaseStatus><LeaseState>available</LeaseState><DefaultEncryptionScope>$account-encryption-key</DefaultEncryptionScope><DenyEncryptionScopeOverride>false</DenyEncryptionScopeOverride><HasImmutabilityPolicy>false</HasImmutabilityPolicy><HasLegalHold>false</HasLegalHold></Properties></Container></Containers><NextMarker /></EnumerationResults>", | ||
"Date" : "Wed, 18 Nov 2020 20:53:50 GMT", | ||
"x-ms-client-request-id" : "3e01836f-8769-45a6-926e-d3df8cd56a2c", | ||
"Content-Type" : "application/xml" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "DELETE", | ||
"Uri" : "https://REDACTED.blob.core.windows.net/jtclistblobsprefixwithcomma097102c4f575e414a74be?restype=container", | ||
"Headers" : { | ||
"x-ms-version" : "2020-02-10", | ||
"User-Agent" : "azsdk-java-azure-storage-blob/12.10.0-beta.1 (11.0.7; Windows 10; 10.0)", | ||
"x-ms-client-request-id" : "1bce1177-17a1-4aa4-b4b2-a6b84369685c" | ||
}, | ||
"Response" : { | ||
"x-ms-version" : "2020-02-10", | ||
"Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", | ||
"retry-after" : "0", | ||
"Content-Length" : "0", | ||
"StatusCode" : "202", | ||
"x-ms-request-id" : "5a0b9c78-c01e-0073-04ec-bd7d3a000000", | ||
"Date" : "Wed, 18 Nov 2020 20:53:50 GMT", | ||
"x-ms-client-request-id" : "1bce1177-17a1-4aa4-b4b2-a6b84369685c" | ||
}, | ||
"Exception" : null | ||
} ], | ||
"variables" : [ "jtclistblobsprefixwithcomma097102c4f575e414a74be", "javabloblistblobsprefixwithcomma199461a7d43fde3c03", "javabloblistblobsprefixwithcomma235482222869197945" ] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters