Skip to content

Conversation

donoghuc
Copy link
Member

Release notes

[rn:skip]

What does this PR do?

Recently #17460 the implementation for integer/postive integer settings was moved from jruby to pure java. The ruby implementation was leinient with whitespace in string values. This commit updates the java implementation to replicate this by stripping whitespace from string values before trying to parse them as int.

Recently elastic#17460 the implementation for
integer/postive integer settings was moved from jruby to pure java. The ruby
implementation was leinient with whitespace in string values. This commit
updates the java implementation to replicate this by stripping whitespace from
string values before trying to parse them as int.
@github-actions
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@mergify
Copy link
Contributor

mergify bot commented Aug 15, 2025

This pull request does not have a backport label. Could you fix it @donoghuc? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit.
  • If no backport is necessary, please add the backport-skip label

@donoghuc donoghuc changed the title Preserve coerce behavior from Ruby impl Preserve coerce behavior from Ruby Integer/PositiveInteger Settings impl Aug 15, 2025
@donoghuc
Copy link
Member Author

@donoghuc
Copy link
Member Author

Ruby:

➜  irb
irb(main):001> Integer(' 1')
=> 1

@elastic-sonarqube
Copy link

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

@donoghuc
Copy link
Member Author

Test https://buildkite.com/elastic/logstash-health-report-tests-pipeline/builds/379

Health report tests are green when run against this PR

Copy link
Contributor

@kaisecheng kaisecheng left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@mashhurs mashhurs left a comment

Choose a reason for hiding this comment

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

LGTM!

@donoghuc donoghuc added the backport-skip Skip automated backport with mergify label Aug 15, 2025
@donoghuc donoghuc merged commit 22f6b69 into elastic:main Aug 15, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-skip Skip automated backport with mergify

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants