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 EphemerisManager crashing on invalid configuration #2949

Merged
merged 1 commit into from
May 5, 2022

Conversation

J-N-K
Copy link
Member

@J-N-K J-N-K commented May 5, 2022

It has been reported in the past (and in the forum) that the EphemerisManagerImpl can't handle illegal configurations. Due to dependencies in other bundles this results in the whole automation component to be unavailable.

This PR adds code to strip illegal characters (which will solve most reported issues with additional double quotes) and just skips a days configuration with unknown day names (instead of failing to activate/modify the service in total).

Signed-off-by: Jan N. Klug github@klug.nrw

It has been reported in the past (and in the forum) that the EphemerisManagerImpl can't handle illegal configurations. Due to dependencies in other bundles this results in the whole automation component to be unavailable.

Signed-off-by: Jan N. Klug <github@klug.nrw>
@J-N-K J-N-K added the bug An unexpected problem or unintended behavior of the Core label May 5, 2022
@J-N-K J-N-K requested a review from a team as a code owner May 5, 2022 17:18
@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/bundles-in-waiting-state-after-3-3-0-m4-update/135679/9

Copy link
Member

@kaikreuzer kaikreuzer left a comment

Choose a reason for hiding this comment

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

Thanks!

@kaikreuzer kaikreuzer merged commit de1f850 into openhab:main May 5, 2022
@kaikreuzer kaikreuzer added this to the 3.3 milestone May 5, 2022
@J-N-K J-N-K deleted the bug-ephemerismanager branch May 6, 2022 17:30
splatch pushed a commit to ConnectorIO/copybara-hab-core that referenced this pull request Jul 12, 2023
It has been reported in the past (and in the forum) that the EphemerisManagerImpl can't handle illegal configurations. Due to dependencies in other bundles this results in the whole automation component to be unavailable.

Signed-off-by: Jan N. Klug <github@klug.nrw>
GitOrigin-RevId: de1f850
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 the Core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants