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

[plugwise] Prevent possible chomp bug #15339

Merged
merged 11 commits into from
Nov 4, 2023
Merged

Conversation

lsiepel
Copy link
Contributor

@lsiepel lsiepel commented Jul 30, 2023

With #14432 the apache lib got removed. The chomp alternative implemented is not close enough to the apache lib. This PR fixes that alternative and prevents possible (not yet seen) bugs, also re-aranges some methods to a StringUtils class

I have some limited Plugwise setup, that i tested and it seems to work fine.
Test jar 4.1.0 here: https://1drv.ms/u/s!AnMcxmvEeupwjq5dAaDnjHKTJq_tZA?e=a1QSZ2

Signed-off-by: lsiepel <leosiepel@gmail.com>
@lsiepel lsiepel added the bug An unexpected problem or unintended behavior of an add-on label Jul 30, 2023
@lsiepel lsiepel requested a review from wborn as a code owner July 30, 2023 18:31
@lsiepel lsiepel added the work in progress A PR that is not yet ready to be merged label Aug 1, 2023
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
@lsiepel lsiepel removed the work in progress A PR that is not yet ready to be merged label Oct 16, 2023
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
@lsiepel lsiepel requested a review from wborn October 30, 2023 22:07
Copy link
Member

@wborn wborn left a comment

Choose a reason for hiding this comment

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

Thank you!

@wborn wborn merged commit 38a9612 into openhab:main Nov 4, 2023
3 checks passed
@wborn wborn added this to the 4.1 milestone Nov 4, 2023
@lsiepel lsiepel deleted the plugwise-chomp branch November 4, 2023 12:10
andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Nov 26, 2023
* Improve chomp
* Adapt to core Stringutils
* Improve minor null check

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
* Improve chomp
* Adapt to core Stringutils
* Improve minor null check

Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants