Skip to content
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

Merged
merged 29 commits into from
Oct 8, 2024
Merged

Conversation

ibrandes
Copy link
Contributor

@ibrandes ibrandes commented Sep 11, 2024

Addresses #41709

@github-actions github-actions bot added the Storage Storage Service (Queues, Blobs, Files) label Sep 11, 2024
@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@ibrandes
Copy link
Contributor Author

/azp run java - storage - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@kyleknap kyleknap left a 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.

@ibrandes ibrandes requested a review from kyleknap October 2, 2024 18:33
@ibrandes ibrandes marked this pull request as ready for review October 2, 2024 20:36
Copy link
Member

@kyleknap kyleknap left a 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.

Copy link
Member

@kyleknap kyleknap left a 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.

Copy link
Member

@kyleknap kyleknap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 🚢

@ibrandes
Copy link
Contributor Author

ibrandes commented Oct 3, 2024

/azp run java - storage - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

…d support for unencrypted blob length for blobinputstream
Copy link
Member

@kyleknap kyleknap left a 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.

@ibrandes
Copy link
Contributor Author

ibrandes commented Oct 7, 2024

/azp run java - storage - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@kyleknap kyleknap left a 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 🚢

@ibrandes ibrandes merged commit 50e825d into Azure:main Oct 8, 2024
20 checks passed
ibrandes added a commit that referenced this pull request Oct 8, 2024
* 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
srnagar pushed a commit to srnagar/azure-sdk-for-java that referenced this pull request Oct 8, 2024
* 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
ibrandes added a commit that referenced this pull request Oct 8, 2024
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants