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

Path not found when pathname contains brackets #401

Closed
jschroedertrianel opened this issue May 3, 2024 · 4 comments · Fixed by #414
Closed

Path not found when pathname contains brackets #401

jschroedertrianel opened this issue May 3, 2024 · 4 comments · Fixed by #414
Assignees
Labels
bug Something isn't working needs-feedback We'll only proceed once we hear from you again

Comments

@jschroedertrianel
Copy link

I'm trying to check a directory which contains brackets in the pathname, for example:

c:\temp\test [1]\

I tried several ways of escaping the brackets in the path configuration but nothing seems to work. I always receive

Icinga Invalid Input Error was thrown: Invalid Input Exception: Path not found
Invalid Input exception occured:
Plugin execution failed because the defined -Path does not exist on this system

@LordHepipud LordHepipud self-assigned this May 15, 2024
@LordHepipud LordHepipud added bug Something isn't working Investigation The team is looking into the cause of the issue labels May 15, 2024
@LordHepipud LordHepipud added this to the v1.13.0 milestone May 15, 2024
@LordHepipud
Copy link
Collaborator

Thank you for the issue. I assume the problem in this case is that the brackets will be handled as regular expression.
I will have a look on that.

@LordHepipud
Copy link
Collaborator

Could you please try and test the linked PR? this should resolve the issue.

@LordHepipud LordHepipud added needs-feedback We'll only proceed once we hear from you again and removed Investigation The team is looking into the cause of the issue labels Aug 15, 2024
@jschroedertrianel
Copy link
Author

Thank you for your help. I tested the provided fix but sadly I still receive the error:

Icinga Invalid Input Error was thrown: Invalid Input Exception: Path not found
Invalid Input exception occured:
Plugin execution failed because the defined -Path does not exist on this system

@LordHepipud
Copy link
Collaborator

Have you rebuild the cache after you made those changes?

icinga -RebuildCache { Restart-IcingaForWindows; };

This should actually resolve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-feedback We'll only proceed once we hear from you again
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants