object names ending with space cause problems
Opened this issue · 0 comments
moreamazingnick commented
Describe the bug
object names ending with space cause problems.
I know it is a bad idea to use spaces at the end of object names but it was discovered by a "copy and paste"-create-service-task
To Reproduce
- create an service with e.g "test "
- add service as a node
- store
Expected behavior
Services should be displayed correctly for all valid icinga object names
Screenshots
![Screenshot 2023-10-02 133629](https://private-user-images.githubusercontent.com/29682206/271960458-98840131-f279-483d-840c-333ce44a93ad.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4ODA5ODksIm5iZiI6MTcyNDg4MDY4OSwicGF0aCI6Ii8yOTY4MjIwNi8yNzE5NjA0NTgtOTg4NDAxMzEtZjI3OS00ODNkLTg0MGMtMzMzY2U0NGE5M2FkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI4VDIxMzEyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA1NzUwN2VhZWQ2MTgxNTk0ODJlMjBjZGVjZmE2OTY3ODkwNjc5N2E2ZWNkZjcwYTRlZTI0N2RjMmY5OWQyZmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.rOylIi8flekex81TtQ89lc-NGT90TgMd_bKmUo0-gL8)
![Screenshot 2023-10-02 134020](https://private-user-images.githubusercontent.com/29682206/271960464-0a4281fd-b4b5-49f2-9930-5add9ec9b2df.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4ODA5ODksIm5iZiI6MTcyNDg4MDY4OSwicGF0aCI6Ii8yOTY4MjIwNi8yNzE5NjA0NjQtMGE0MjgxZmQtYjRiNS00OWYyLTk5MzAtNWFkZDllYzliMmRmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI4VDIxMzEyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg0NGUwNjc4ZmM3MzNhOGY3ZGFiODMyODIyYmM1NjE2Yjg0N2IwMzJhNTUxNTJiMWM1MmI5NWU0ODQyMGY1OGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ie6pZjzr8ERhMdNyq7vrIRKX94ZcWQaaWhYDVyKFnX8)
![Screenshot 2023-10-02 134555](https://private-user-images.githubusercontent.com/29682206/271960912-07cdb6ab-f7e5-435e-b6e5-207bde496978.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ4ODA5ODksIm5iZiI6MTcyNDg4MDY4OSwicGF0aCI6Ii8yOTY4MjIwNi8yNzE5NjA5MTItMDdjZGI2YWItZjdlNS00MzVlLWI2ZTUtMjA3YmRlNDk2OTc4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI4VDIxMzEyOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg1ZmQ4YzJlN2MwMmIwZjcwOThiMDk0MTllM2QyN2ZkMzk5YTQxMzU2ZmMzNTAyNzUwNjVlZjZjNzE2NjdmM2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.aBuIwV2S2lHkJUUSL4bgekHlOvNkaTEk-Ba-7g-Tbq0)
Your Environment
Include as many relevant details about the environment you experienced the problem in
- Icinga Web 2 version and modules (System - About): 2.12, Businessprocess 2.4.0
- Web browser used: Chrome
Additional context
Add any other context about the problem here.