-
Notifications
You must be signed in to change notification settings - Fork 241
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
CLDSRV-473: fix cors issues in getVeeamFile #5464
CLDSRV-473: fix cors issues in getVeeamFile #5464
Conversation
Hello hervedombya,My role is to assist you with the merge of this Status report is not available. |
Incorrect fix versionThe
Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:
Please check the |
Incorrect fix versionThe
Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:
Please check the |
@@ -18,7 +18,7 @@ function getVeeamFile(request, response, bucketMd, log) { | |||
return responseXMLBody(errors.NoSuchBucket, null, response, log); | |||
} | |||
if ('tagging' in request.query) { | |||
return respondWithData(request, response, log, request.bucketName, | |||
return respondWithData(request, response, log, bucketMd, |
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.
Context for reviewers: passing the whole bucket object instead of the name only will allow to support proxies by returning the right CORS config, API format is not impacted
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.
Context: We had an error in local env when retrieving the capacity xml file, so to fix it we sent the bucket object as a parameter in response instead of just the bucket name.
@@ -35,7 +35,7 @@ function headVeeamFile(request, response, bucketMd, log) { | |||
headless: true, | |||
}); | |||
const dataBuffer = Buffer.from(buildHeadXML(builder.buildObject(fileToBuild))); | |||
return responseContentHeaders(null, {}, getResponseHeader(request, request.bucketName, | |||
return responseContentHeaders(null, {}, getResponseHeader(request, data, |
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.
Worth adding a test if possible to ensure that the CORS headers are returned, usually we ensure that each bugfix ticket is merged with a test to ensure that we never recreate the issue again
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.
Done in 363afcd
Incorrect fix versionThe
Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:
Please check the |
Branches have divergedThis pull request's source branch To avoid any integration risks, please re-synchronize them using one of the
Note: If you choose to rebase, you may have to ask me to rebuild |
0ab6b13
to
6c7629f
Compare
Incorrect fix versionThe
Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:
Please check the |
Incorrect fix versionThe
Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:
Please check the |
46c6aa2
to
f5bc3d8
Compare
f5bc3d8
to
363afcd
Compare
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
|
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.
LGTM
You can add a commit as the last one to bump the project before mergning, if you need to release. Note: make sure the targeted branch is indeed what you want to fix this bug.
/approve |
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
The following options are set: approve |
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.
LGTM
In the queueThe changeset has received all authorizations and has been added to the The changeset will be merged in:
The following branches will NOT be impacted:
There is no action required on your side. You will be notified here once IMPORTANT Please do not attempt to modify this pull request.
If you need this pull request to be removed from the queue, please contact a The following options are set: approve |
I have successfully merged the changeset of this pull request
The following branches have NOT changed:
Please check the status of the associated issue CLDSRV-473. Goodbye hervedombya. |
Pull request template
Description
Motivation and context
Why is this change required? What problem does it solve?
Related issues
Please use the following link syntaxes #600 to reference issues in the
current repository
Checklist
Add tests to cover the changes
New tests added or existing tests modified to cover all changes
Code conforms with the style guide
Sign your work
In order to contribute to the project, you must sign your work
https://github.com/scality/Guidelines/blob/master/CONTRIBUTING.md#sign-your-work
Thank you again for contributing! We will try to test and integrate the change
as soon as we can.