Files
floci/src/test/java
Priamo Germosen 70328403f0 fix(codeartifact): normalize NuGet versions before synthesizing a revision (#5970)
synthesizeContainerBackedRevision hashed the raw, caller-supplied version
string, but BaGetter's own version matching (BagetterSidecarClient.matchVersion,
via NuGetVersions.normalize) already normalizes a requested NuGet version
before resolving it, per AWS's own documented leading/trailing-zero rules.
Two equivalent spellings of the same stored version (1.00.0 and 1.0.0)
therefore returned different versionRevision values, and a revision obtained
with one spelling never matched a revision-pinned request using the other.

Normalizes the version for nuget only before hashing, shared by every one of
synthesizeContainerBackedRevision's six call sites (DescribePackageVersion,
GetPackageVersionAsset, GetPackageVersionReadme, both sides of
CopyPackageVersions, and ListPackageVersionAssets), so a single change fixes
all of them consistently rather than patching one at a time. Maven, npm, and
pypi are unaffected: only BaGetter's client normalizes the requested version
before matching; Reposilite and Verdaccio match the literal string.

Fixes #5967.
2026-10-19 07:43:27 -05:00
..