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(servicecatalog): incorrect objectkey produced from asset relative… #23580

Merged
merged 2 commits into from
Jan 12, 2023

Conversation

wanjacki
Copy link
Contributor

@wanjacki wanjacki commented Jan 5, 2023

Currently when assets are nested in a directory, ProductStack is unable to parse the fileName and produces an incorrect template.
Since asset.fileName is the relative to the root of the cloud assembly, in which this asset source resides,
we need to call path.basename in order to get the actual name of the file before parsing it to generate the s3Filename

More details found in #23560


All Submissions:

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 Jan 5, 2023

@github-actions github-actions bot added the valued-contributor [Pilot] contributed between 6-12 PRs to the CDK label Jan 5, 2023
@aws-cdk-automation aws-cdk-automation requested a review from a team January 5, 2023 20:14
@github-actions github-actions bot added the p2 label Jan 5, 2023
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

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

The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.

@wanjacki
Copy link
Contributor Author

wanjacki commented Jan 5, 2023

The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.

This is a small change that fixes a bug, I added a corresponding unit test to verify this exact scenario and make sure it is working as intended now. Is it possible to be exempt from integ test changes here?

@padaszewski
Copy link

@corymhall
Hi, sorry for bothering, but You were reviewing this and if it were possible could You also take a quick look on this issue? I thought this would be fast merged but 2.60 is out and this is still open. I don't want this PR to go down because it is probably the last blocker for us.

@corymhall corymhall added the pr-linter/exempt-integ-test The PR linter will not require integ test changes label Jan 12, 2023
corymhall
corymhall previously approved these changes Jan 12, 2023
@aws-cdk-automation aws-cdk-automation dismissed their stale review January 12, 2023 12:41

✅ Updated pull request passes all PRLinter validations. Dissmissing previous PRLinter review.

@mergify
Copy link
Contributor

mergify bot commented Jan 12, 2023

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

@TheRealAmazonKendra
Copy link
Contributor

@Mergifyio update

@mergify
Copy link
Contributor

mergify bot commented Jan 12, 2023

update

❌ Base branch update has failed

refusing to allow a GitHub App to create or update workflow .github/workflows/issue-label-assign.yml without workflows permission
err-code: 3FD2A

@mergify mergify bot dismissed corymhall’s stale review January 12, 2023 21:59

Pull request has been modified.

Copy link
Contributor

@TheRealAmazonKendra TheRealAmazonKendra left a comment

Choose a reason for hiding this comment

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

Mergify being Mergify. Re-approving.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: c493ddd
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@mergify
Copy link
Contributor

mergify bot commented Jan 12, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p2 pr-linter/exempt-integ-test The PR linter will not require integ test changes valued-contributor [Pilot] contributed between 6-12 PRs to the CDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants