[ZBX-12372] web.page.get adds / to 2nd key param unconditionally Created: 2017 Jul 12  Updated: 2024 Apr 10  Resolved: 2018 May 14

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G), Documentation (D)
Affects Version/s: 3.2.6
Fix Version/s: 3.0.18rc1, 3.4.10rc1, 4.0.0alpha7, 4.0 (plan)

Type: Incident report Priority: Minor
Reporter: Oleksii Zagorskyi Assignee: Michael Veksler
Resolution: Fixed Votes: 0
Labels: web
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
Team: Team C
Sprint: Sprint 32, Sprint 33, Sprint 34
Story Points: 0.125

 Description   

If I use key like

web.page.get[www.zabbix.com,/partner_program]

it does not work for some my web servers.
While this one does work:

web.page.get[www.zabbix.com,partner_program]

The reason is that zabbix agent adds one heading slash / to 2nd key param unconditionally, which I personally would consider as a bug.
In the result some my web servers do not proceed double slash // in URL and return HTTP 404.

Why bug - in documentation it's specified that defaults for 2nd param is /, but I specify a value for 2nd param, so, according to general zabbix logic, defaults should not affect in any way.

I'm not sure that it will be fixed in agent's code, so documentation should explicitly mention the behavior.


Generated at Sat Apr 27 07:57:19 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.