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

Fixes issue wherein the wrong parameter name was used for cross region presigned urls #1325

Merged
merged 2 commits into from
Jan 25, 2017
Merged

Fixes issue wherein the wrong parameter name was used for cross region presigned urls #1325

merged 2 commits into from
Jan 25, 2017

Conversation

chrisradek
Copy link
Contributor

Fixes #1324

/cc @jeskew

@coveralls
Copy link

Coverage Status

Coverage increased (+0.008%) to 91.902% when pulling baa2276 on chrisradek:fix/rds-presigned-url into 4e20b4f on aws:master.

5 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.008%) to 91.902% when pulling baa2276 on chrisradek:fix/rds-presigned-url into 4e20b4f on aws:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.008%) to 91.902% when pulling baa2276 on chrisradek:fix/rds-presigned-url into 4e20b4f on aws:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.008%) to 91.902% when pulling baa2276 on chrisradek:fix/rds-presigned-url into 4e20b4f on aws:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.008%) to 91.902% when pulling baa2276 on chrisradek:fix/rds-presigned-url into 4e20b4f on aws:master.

@coveralls
Copy link

coveralls commented Jan 25, 2017

Coverage Status

Coverage increased (+0.008%) to 91.902% when pulling baa2276 on chrisradek:fix/rds-presigned-url into 4e20b4f on aws:master.

@coveralls
Copy link

coveralls commented Jan 25, 2017

Coverage Status

Coverage increased (+0.008%) to 91.902% when pulling ceb5628 on chrisradek:fix/rds-presigned-url into 4e20b4f on aws:master.

Copy link
Contributor

@jeskew jeskew left a comment

Choose a reason for hiding this comment

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

🐑 🇮🇹

var doesParamValidation = !!this.config.paramValidation;
// remove the validate parameters listener so we can re-add it after we build the URL
if (doesParamValidation) {
request.removeListener('validate', AWS.EventListeners.Core.VALIDATE_PARAMETERS);
Copy link
Contributor

Choose a reason for hiding this comment

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

I wish we had a better way to reorder listeners instead of just removing and re-adding them. Changing this is out of scope for this CR, but it's something we should take a look at.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed, we do this often enough throughout the SDK that we should provide a better way to handle this.

@@ -215,7 +215,7 @@ describe 'AWS.EventListeners', ->
makeRequest(->)
expect(options.timeout).to.equal(15)

it 'signs only once in normal case', ->
it 'signs only once in normal case', (done) ->
Copy link
Contributor

Choose a reason for hiding this comment

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

Hopefully, making all of these async should take care of the flickering failures we've been seeing over the past few weeks

@chrisradek chrisradek merged commit cbfc8cf into aws:master Jan 25, 2017
@chrisradek chrisradek deleted the fix/rds-presigned-url branch January 25, 2017 20:20
@lock
Copy link

lock bot commented Sep 28, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Sep 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RDS is not injecting correct pre-signed url
3 participants