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(stepfunctions): repeated object references not allowed even if not a circular reference #14628

Merged

Conversation

marciocarmona
Copy link
Contributor

Popping the current node from visited array after finishing visiting it in recurseObject method. This allows another reference to the same object to happen on a different object path (currently being swallowed).

Created unit test before making any code changes to verify the failure scenario on the expected behavior before fixing it.

fixes #14596


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link

gitpod-io bot commented May 11, 2021

@github-actions github-actions bot added the @aws-cdk/aws-stepfunctions Related to AWS StepFunctions label May 11, 2021
@shivlaks shivlaks changed the title fix(step-functions): repeated object references on step input should be allowed if not causing a circular reference fix(stepfunctions): repeated object references on step input should be allowed if not causing a circular reference May 17, 2021
@shivlaks shivlaks requested a review from BenChaimberg June 4, 2021 02:49
@BenChaimberg BenChaimberg changed the title fix(stepfunctions): repeated object references on step input should be allowed if not causing a circular reference fix(stepfunctions): repeated object references not allowed even if not a circular reference Jun 7, 2021
BenChaimberg
BenChaimberg previously approved these changes Jun 7, 2021
@mergify mergify bot dismissed BenChaimberg’s stale review June 7, 2021 16:26

Pull request has been modified.

@mergify
Copy link
Contributor

mergify bot commented Jun 7, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 7883e1e
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit 486990f into aws:master Jun 7, 2021
@mergify
Copy link
Contributor

mergify bot commented Jun 7, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Aug 26, 2021
…t a circular reference (aws#14628)

Popping the current node from `visited` array after finishing visiting it in `recurseObject` method. This allows another reference to the same object to happen on a different object path (currently being swallowed).

Created unit test before making any code changes to verify the failure scenario on the expected behavior before fixing it.

fixes aws#14596 

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-stepfunctions Related to AWS StepFunctions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[aws-stepfunctions] recurseObject skips repeated object references even when they're not causing a cycle
4 participants