[ZBX-25876] HP iLO over HTTP does not work with specials chars in password Created: 2025 Jan 14 Updated: 2025 Aug 04 Resolved: 2025 Jan 22 |
|
| Status: | Closed |
| Project: | ZABBIX BUGS AND ISSUES |
| Component/s: | Server (S) |
| Affects Version/s: | 7.0.7, 7.0.8, 7.2.1, 7.2.2 |
| Fix Version/s: | 7.0.9rc1, 7.2.3rc1, 7.4.0alpha1 |
| Type: | Problem report | Priority: | Blocker |
| Reporter: | Jelmer Jaarsma | Assignee: | Armands Arseniuss Skolmeisters (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | 16h | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Team: | |||||||||||||
| Sprint: | S25-W2/3, S25-W4/5 | ||||||||||||
| Story Points: | 1 | ||||||||||||
| Description |
|
Steps to reproduce:
Result: 591837:20250114:133320.305 [ HPE iLO ] Received response with status code 401: {"error":{"code":"iLO.0.10.ExtendedInfo","message":"See @Message.ExtendedInfo for more information.","@Message.ExtendedInfo":[ {"MessageId":"iLO.2.24.UnauthorizedLoginAttempt"}]}} ]}}. Succesful login and working monitoring
I have added some debugging statements to the apiAuth function in the iLO template: Zabbix.log(4, '[ HPE iLO ] Debug auth: '+ JSON.stringify(auth_data)); The result: 591837:20250114:133620.255 [ HPE iLO ] Debug auth: {"UserName":"zabbix","Password":"Welkom123\\\""}
It looks like the JSON.stringify function is escaping the password! This used to work before Zabbix 7.2 |
| Comments |
| Comment by Jelmer Jaarsma [ 2025 Jan 14 ] |
|
In the above example the actual password was: Welkom123" I think my conclusion was a bit hasty, it looks like escaping is already done when retrieving the password from the macro |
| Comment by Alexander Vladishev [ 2025 Jan 14 ] |
|
Thanks for your report! This issue occurs due to incorrect macro expansion in the item script parameters. |
| Comment by Armands Arseniuss Skolmeisters (Inactive) [ 2025 Jan 20 ] |
|
Available in versions:
|