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: Encoding problems with special chars or German umlauts #482

Merged
merged 1 commit into from
Aug 17, 2022

Conversation

LordHepipud
Copy link
Collaborator

Fixes Icinga for Windows plugin execution, by converting all parsed arguments and values from Icinga 2 from the Default of the PowerShell to UTF8.

This resolves issues during plugin execution on which arguments like -Path, -TaskName or anything else contained characters like äöüß.

In addition, we created an internal StringBuilder to resolve current issues on which unescaped strings within the Icinga configuration like Icinga for Windows instead of 'Icinga for Windows', are interpreted as Icinga instead of Icinga for Windows because of the whitespaces.

The new argument parser will test for this and create a proper string output value.

@cla-bot cla-bot bot added the cla/signed label Feb 16, 2022
@LordHepipud LordHepipud force-pushed the fix/utf8_encoding_errors branch from f3e27f0 to 493dcbd Compare February 16, 2022 16:48
@LordHepipud LordHepipud added this to the v1.9.0 milestone Feb 16, 2022
@LordHepipud LordHepipud added the Bug There is an issue present label Feb 16, 2022
@LordHepipud LordHepipud self-assigned this Feb 16, 2022
@LordHepipud LordHepipud modified the milestones: v1.9.0, v1.10.0 May 2, 2022
@LordHepipud LordHepipud force-pushed the fix/utf8_encoding_errors branch 2 times, most recently from 37b7993 to eaf04f6 Compare June 22, 2022 12:38
@LordHepipud LordHepipud force-pushed the fix/utf8_encoding_errors branch from eaf04f6 to 813a362 Compare August 17, 2022 15:05
@LordHepipud LordHepipud force-pushed the fix/utf8_encoding_errors branch from 813a362 to 787500c Compare August 17, 2022 15:13
@LordHepipud LordHepipud merged commit 2c8a92f into master Aug 17, 2022
@LordHepipud LordHepipud deleted the fix/utf8_encoding_errors branch August 17, 2022 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug There is an issue present cla/signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant