-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Changing isServerEncrypted parameter to Boolean to avoid NPE #32312
Merged
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
24e86f0
changing isServerEncrypted parameter to Boolean to avoid NPE
ibrahimrabab 7488687
deprecating previous constructors that used boolean instead of Boolean
ibrahimrabab 82dea2e
fixing indentation
ibrahimrabab f4e3858
adding test to handle x-ms-request-server-encrypted returned as null
ibrahimrabab caef629
using LiveOnly to see if test passes
ibrahimrabab 4953b35
adding basic test to verify if BlockBlobItem handles null values
ibrahimrabab e1dd61a
moving newly added constructor to the bottom
ibrahimrabab File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
77 changes: 77 additions & 0 deletions
77
...age-blob/src/test/resources/session-records/BlockBlobAPITestBlockBlobItemNullHeaders.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,77 @@ | ||
{ | ||
"networkCallRecords" : [ { | ||
"Method" : "PUT", | ||
"Uri" : "https://REDACTED.blob.core.windows.net/7753539a07753539a653397613a74d390234b40b8bd1?restype=container", | ||
"Headers" : { | ||
"x-ms-version" : "2021-10-04", | ||
"User-Agent" : "azsdk-java-azure-storage-blob/12.21.0-beta.1 (11.0.16.1; Windows 11; 10.0)", | ||
"x-ms-client-request-id" : "d47a9d41-8830-4f02-8bd4-a6a99c504a6e" | ||
}, | ||
"Response" : { | ||
"content-length" : "0", | ||
"x-ms-version" : "2021-10-04", | ||
"Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", | ||
"ETag" : "0x8DAD32434A9EF0D", | ||
"Last-Modified" : "Wed, 30 Nov 2022 22:42:48 GMT", | ||
"retry-after" : "0", | ||
"StatusCode" : "201", | ||
"x-ms-request-id" : "7a3dfffc-a01e-002a-790d-05a0a2000000", | ||
"Date" : "Wed, 30 Nov 2022 22:42:47 GMT", | ||
"x-ms-client-request-id" : "d47a9d41-8830-4f02-8bd4-a6a99c504a6e" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "PUT", | ||
"Uri" : "https://REDACTED.blob.core.windows.net/7753539a07753539a653397613a74d390234b40b8bd1/7753539a17753539a65305102d347f2059158408485c", | ||
"Headers" : { | ||
"x-ms-version" : "2021-10-04", | ||
"User-Agent" : "azsdk-java-azure-storage-blob/12.21.0-beta.1 (11.0.16.1; Windows 11; 10.0)", | ||
"x-ms-client-request-id" : "f9787ccf-1c72-45f7-892d-7e9f0a693da3", | ||
"Content-Type" : "application/octet-stream" | ||
}, | ||
"Response" : { | ||
"content-length" : "0", | ||
"x-ms-version" : "2021-10-04", | ||
"Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", | ||
"x-ms-content-crc64" : "6RYQPwaVsyQ=", | ||
"Last-Modified" : "Wed, 30 Nov 2022 22:42:48 GMT", | ||
"x-ms-version-id" : "2022-11-30T22:42:48.4748207Z", | ||
"retry-after" : "0", | ||
"StatusCode" : "201", | ||
"x-ms-request-server-encrypted" : "true", | ||
"Date" : "Wed, 30 Nov 2022 22:42:47 GMT", | ||
"Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", | ||
"ETag" : "0x8DAD32434D117AF", | ||
"x-ms-request-id" : "7a3e0171-a01e-002a-500d-05a0a2000000", | ||
"x-ms-client-request-id" : "f9787ccf-1c72-45f7-892d-7e9f0a693da3" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "PUT", | ||
"Uri" : "https://REDACTED.blob.core.windows.net/7753539a07753539a653397613a74d390234b40b8bd1/7753539a27753539a653419280b35f19c474143abbb6", | ||
"Headers" : { | ||
"x-ms-version" : "2021-10-04", | ||
"User-Agent" : "azsdk-java-azure-storage-blob/12.21.0-beta.1 (11.0.16.1; Windows 11; 10.0)", | ||
"x-ms-client-request-id" : "bd083474-97e8-4bf3-85c0-981a4d7d0f38", | ||
"Content-Type" : "application/octet-stream" | ||
}, | ||
"Response" : { | ||
"content-length" : "0", | ||
"x-ms-version" : "2021-10-04", | ||
"Server" : "Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0", | ||
"x-ms-content-crc64" : "6RYQPwaVsyQ=", | ||
"Last-Modified" : "Wed, 30 Nov 2022 22:42:48 GMT", | ||
"x-ms-version-id" : "2022-11-30T22:42:48.6337297Z", | ||
"retry-after" : "0", | ||
"StatusCode" : "201", | ||
"x-ms-request-server-encrypted" : "true", | ||
"Date" : "Wed, 30 Nov 2022 22:42:47 GMT", | ||
"Content-MD5" : "wh+Wm18D0z1D4E+PE252gg==", | ||
"ETag" : "0x8DAD32434E95711", | ||
"x-ms-request-id" : "7a3e02a2-a01e-002a-6f0d-05a0a2000000", | ||
"x-ms-client-request-id" : "bd083474-97e8-4bf3-85c0-981a4d7d0f38" | ||
}, | ||
"Exception" : null | ||
} ], | ||
"variables" : [ "7753539a07753539a653397613a74d390234b40b8bd1", "7753539a17753539a65305102d347f2059158408485c", "7753539a27753539a653419280b35f19c474143abbb6" ] | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding this below the constructors instead of above will maintain the chronological progression of these constructors, making it easier to decipher later.