Skip to content

Fixes bug where DataPrepperVersion can support invalid versions#6199

Merged
dlvenable merged 1 commit into
opensearch-project:mainfrom
dlvenable:dp-version-parse-corrections
Oct 23, 2025
Merged

Fixes bug where DataPrepperVersion can support invalid versions#6199
dlvenable merged 1 commit into
opensearch-project:mainfrom
dlvenable:dp-version-parse-corrections

Conversation

@dlvenable

Copy link
Copy Markdown
Member

Description

A recent commit to parse the version from the Gradle project updated the public parse() method to support a full version string. However, this is not an allowable version to parse for the purposes of pipeline configurations. This change fixes that by bringing back the restriction on the public parse() method to support only major or major.minor patterns. Only when reading from the version string from the VersionProvider do we now allow reading the full version string.

Issues Resolved

N/A

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…the version from the Gradle project updated the public parse() method to support a full version string. However, this is not an allowable version to parse for the purposes of pipeline configurations. This change fixes that by bringing back the restriction on the public parse() method to support only major or major.minor patterns. Only when reading from the version string from the VersionProvider, do we now allow reading the full version string.

Signed-off-by: David Venable <dlv@amazon.com>
@dlvenable dlvenable merged commit 1fa5315 into opensearch-project:main Oct 23, 2025
46 of 47 checks passed
@dlvenable dlvenable deleted the dp-version-parse-corrections branch October 23, 2025 16:53
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