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

Fix issue of copy succeeded without 'r' permission in SAS token credential #2330

Merged
merged 1 commit into from
Dec 26, 2023

Conversation

EmmaZhu
Copy link
Member

@EmmaZhu EmmaZhu commented Dec 26, 2023

Thanks for contribution! Please go through following checklist before sending PR.

PR Branch Destination

  • For Azurite V3, please send PR to main branch.
  • For legacy Azurite V2, please send PR to legacy-dev branch.

Always Add Test Cases

Make sure test cases are added to cover the code change.

Add Change Log

Add change log for the code change in Upcoming Release section in ChangeLog.md.

Development Guideline

Please go to CONTRIBUTION.md for steps about setting up development environment and recommended Visual Studio Code extensions.

@EmmaZhu EmmaZhu force-pushed the copy_auth branch 2 times, most recently from ae79fc3 to c28e46d Compare December 26, 2023 07:47
@@ -664,7 +662,8 @@ export default class BlobHandler extends BaseHandler implements IBlobHandler {
throw StorageErrorFactory.getBlobNotFound(context.contextId!);
}

if (sourceAccount !== blobCtx.account) {
const sig = url.searchParams.get("sig");
if ((sourceAccount !== blobCtx.account) || (sig !== null)) {
Copy link
Member

Choose a reason for hiding this comment

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

Just to confirm, this is the only product by propose.
There are so many coding format changes, and not easy to get all real product code change.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, this is the only place I changed for product code. Other are all changed by prettier tool .

@EmmaZhu EmmaZhu merged commit 3f64420 into Azure:main Dec 26, 2023
35 checks passed
@arnabfromjec05
Copy link

@EmmaZhu
which build version will this bug fix be released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants