-
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
V2 Encryption Bug 4MB file downloads #41813
Conversation
API change check API changes are not detected in this pull request. |
/azp run java - storage - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
It is looking good. I like how we are able to minimize the invasiveness of the change with the context approach. I just had some general questions and suggestions related to refactoring some of this.
.../src/main/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlobAsyncClient.java
Outdated
Show resolved
Hide resolved
.../src/main/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlobAsyncClient.java
Outdated
Show resolved
Hide resolved
.../src/main/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlobAsyncClient.java
Outdated
Show resolved
Hide resolved
.../src/main/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlobAsyncClient.java
Outdated
Show resolved
Hide resolved
.../src/main/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlobAsyncClient.java
Outdated
Show resolved
Hide resolved
...raphy/src/main/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlobClient.java
Outdated
Show resolved
Hide resolved
...rage-blob/src/main/java/com/azure/storage/blob/implementation/util/ChunkedDownloadUtils.java
Show resolved
Hide resolved
...rage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/BlobClientBase.java
Outdated
Show resolved
Hide resolved
...rc/test/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlockBlobApiTests.java
Show resolved
Hide resolved
...e-blob-changefeed/src/main/java/com/azure/storage/blob/changefeed/BlobChunkedDownloader.java
Outdated
Show resolved
Hide resolved
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.
It's looking good. Just had some smaller comments.
.../src/main/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlobAsyncClient.java
Outdated
Show resolved
Hide resolved
...raphy/src/main/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlobClient.java
Outdated
Show resolved
Hide resolved
...raphy/src/main/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlobLength.java
Outdated
Show resolved
Hide resolved
...raphy/src/main/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlobLength.java
Outdated
Show resolved
Hide resolved
...raphy/src/main/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlobLength.java
Outdated
Show resolved
Hide resolved
...rc/test/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlockBlobApiTests.java
Outdated
Show resolved
Hide resolved
...rc/test/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlockBlobApiTests.java
Outdated
Show resolved
Hide resolved
...rage-blob/src/main/java/com/azure/storage/blob/implementation/util/ChunkedDownloadUtils.java
Show resolved
Hide resolved
...raphy/src/main/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlobLength.java
Show resolved
Hide resolved
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.
Looks good. I just had a couple more small questions/comments.
.../src/test/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlobLengthTests.java
Show resolved
Hide resolved
...raphy/src/main/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlobLength.java
Outdated
Show resolved
Hide resolved
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.
Looks good! 🚢
/azp run java - storage - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
…d support for unencrypted blob length for blobinputstream
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.
Looks good. I just had a few more small comments. We should also probably add to our changelog that we fixed the same issue in the openInputStream
API.
...graphy/src/main/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlobRange.java
Show resolved
Hide resolved
...rc/test/java/com/azure/storage/blob/specialized/cryptography/EncryptedBlockBlobApiTests.java
Outdated
Show resolved
Hide resolved
...age/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/BlobInputStream.java
Outdated
Show resolved
Hide resolved
…per method to blobinputstream
/azp run java - storage - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
...age/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/BlobInputStream.java
Outdated
Show resolved
Hide resolved
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.
Looks good. Good catch on finding those other decryption issues 🚢
* testing, need to get this branch on my other workstation * adding broken test * updating tests * tests with logging * updating test and adding fix * making test paramaterized and adding change for only encryption v2 downloads * fixing imports * wip context addition * context implementation and sync / async tests * adding back unpulled tests * consolidating one of the async util methods * addressing all comments besides 1 * removing leftover changes and adding back test for V2 * kyle test * adjusting unencrypted blob length calculation * recording tests and fixing style * addressing comments * changelog update * fixing messed up recorded test * adding more test cases and updating adjustment method signature * adding missed recordings and fixing style * changing offsetAdjustment to a long to prevent int overflow, and added support for unencrypted blob length for blobinputstream * adding test for integer overflow, removing redundant test, adding helper method to blobinputstream * adjusting changelong * removing unused imports * changing blobinputstream util method to use long instead of Long
* testing, need to get this branch on my other workstation * adding broken test * updating tests * tests with logging * updating test and adding fix * making test paramaterized and adding change for only encryption v2 downloads * fixing imports * wip context addition * context implementation and sync / async tests * adding back unpulled tests * consolidating one of the async util methods * addressing all comments besides 1 * removing leftover changes and adding back test for V2 * kyle test * adjusting unencrypted blob length calculation * recording tests and fixing style * addressing comments * changelog update * fixing messed up recorded test * adding more test cases and updating adjustment method signature * adding missed recordings and fixing style * changing offsetAdjustment to a long to prevent int overflow, and added support for unencrypted blob length for blobinputstream * adding test for integer overflow, removing redundant test, adding helper method to blobinputstream * adjusting changelong * removing unused imports * changing blobinputstream util method to use long instead of Long
* V2 Encryption Bug 4MB file downloads (#41813) * testing, need to get this branch on my other workstation * adding broken test * updating tests * tests with logging * updating test and adding fix * making test paramaterized and adding change for only encryption v2 downloads * fixing imports * wip context addition * context implementation and sync / async tests * adding back unpulled tests * consolidating one of the async util methods * addressing all comments besides 1 * removing leftover changes and adding back test for V2 * kyle test * adjusting unencrypted blob length calculation * recording tests and fixing style * addressing comments * changelog update * fixing messed up recorded test * adding more test cases and updating adjustment method signature * adding missed recordings and fixing style * changing offsetAdjustment to a long to prevent int overflow, and added support for unencrypted blob length for blobinputstream * adding test for integer overflow, removing redundant test, adding helper method to blobinputstream * adjusting changelong * removing unused imports * changing blobinputstream util method to use long instead of Long * update versions * update readmes * update changelogs --------- Co-authored-by: Isabelle <[email protected]>
Addresses #41709