Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Prevent empty deadLetterQueue TargetArns#248

Closed
jync wants to merge 2 commits intomotdotla:mastermotdotla/node-lambda:masterfrom
HomePass:masterHomePass/node-lambda:masterCopy head branch name to clipboard
Closed

Prevent empty deadLetterQueue TargetArns#248
jync wants to merge 2 commits intomotdotla:mastermotdotla/node-lambda:masterfrom
HomePass:masterHomePass/node-lambda:masterCopy head branch name to clipboard

Conversation

@jync
Copy link

@jync jync commented Apr 26, 2017

Commander can return an option as an empty string. Empty strings are invalid ARNs and the AWS SDK will fail. Ignore empty strings if they are sent through.

* Command returns options as an empty string. Empty strings are invalid
  ARNs anyway and the AWS SDK will fail. Ignore empty strings if they
  are sent through.
@abetomo
Copy link
Contributor

abetomo commented Apr 26, 2017

Thanks.
createFunction certainly fails.
However, in the case of updateFunctionConfiguration, empty characters are allowed, and setting can be invalidated by setting an empty string.

For the above reasons there is a background that we accepted the empty string.

* Again, the AWS SDK fails if it is provided and not expected
@@ -0,0 +1 @@
undefined No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

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

please remove

@@ -0,0 +1 @@
undefined No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

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

please remove

@@ -0,0 +1 @@
undefined No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

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

please remove

@@ -0,0 +1 @@
undefined No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

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

please remove

}
}
if (program.deadLetterConfigTargetArn !== undefined) {
if (program.deadLetterConfigTargetArn !== undefined && program.deadLetterConfigTargetArn !== '' && program.deadLetterConfigTargetArn !== null) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

as @abetomo already mentioned, we allowed '' to be passed, to have a possibility to unset it. We would need some kind of mechanism for understanding if this is an update or a create, and adjust accordingly.

if (program.tracingConfig !== undefined && program.tracingConfig !== '' && program.tracingConfig !== null) {
params.TracingConfig.Mode = program.tracingConfig;
} else {
delete params.TracingConfig;
Copy link
Collaborator

Choose a reason for hiding this comment

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

does this return an error if it's null? (seems counter-intuitive to the other params we're sending, but then again AWS API's are not known to be intuitive)

@DeviaVir
Copy link
Collaborator

Closing for now as two weeks have passed without activity.

@DeviaVir DeviaVir closed this May 10, 2017
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.