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 for "Extracting compiled package archive failed" bug when uploading release with compiled packages #2446

Merged
merged 1 commit into from May 25, 2023

Conversation

jpalermo
Copy link
Member

This situation exists if the bosh director already has a compiled package with a fingerprint and the cli is trying to upload a release that has two different copies of that same package with the same fingerprint using two different names. The current package matching logic only uses fingerprints to match, so the cli ends up removing both packages from the release before uploading it, but the director doesn't actually have compiled versions of both packages.

So instead, we now do not send the fingerprint in the matching response if there is a package in the release manifest that includes that fingerprint but was not successfully matched.

Reproduction steps:
Two compiled releases that share a common package name and fingerprint.
The second release contains a second copy of the package with a different name
Upload the first release
Upload the second release (with two packages)

…ng release with compiled packages

This situation exists if the bosh director already has a compiled package with a fingerprint and the
cli is trying to upload a release that has two different copies of that same package with the same
fingerprint using two different names. The current package matching logic only uses fingerprints to
match, so the cli ends up removing both packages from the release before uploading it, but the director
doesn't actually have compiled versions of both packages.

So instead, we now do not send the fingerprint in the matching response if there is a package
in the release manifest that includes that fingerprint but was not successfully matched.
@jpalermo jpalermo requested a review from lnguyen May 25, 2023 00:10
Copy link
Member

@lnguyen lnguyen left a comment

Choose a reason for hiding this comment

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

LGTM

@lnguyen lnguyen merged commit 5d17140 into main May 25, 2023
4 checks passed
@aramprice aramprice deleted the pr_fix_extracting_compiled_package_archive_failed branch January 12, 2024 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants