[ZBX-23699] Unchecking "Follow redirects" in HTTP agent item is not saved Created: 2023 Nov 12  Updated: 2024 Apr 10  Resolved: 2023 Dec 11

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 6.4.7
Fix Version/s: 6.4.10rc1, 7.0 (plan)

Type: Problem report Priority: Major
Reporter: Off by One Assignee: Andrejs Griščenko
Resolution: Fixed Votes: 0
Labels: httpagent, item
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Causes
caused by ZBXNEXT-6980 Implement audit log for item Closed
Team: Team A
Sprint: Sprint 107 (Dec 2023)
Story Points: 0.125

 Description   

Steps to reproduce:

  1. Create a HTTP agent item; uncheck "Follow redirects", put "302" as value for "Required status codes"
  2. Use the "Test" button: it works; the returned value is the 302 response with its headers and everything
  3. Click "Add" to create the item

Result:

Redirects are followed. The item goes unsupported with error message 'Response code "200" did not match any of the required status codes "302"'.

If the "Required status codes" is changed to "302,200", it does work and the item value is the expected 302 response (so not the final response after following the redirect).

Opening the item configuration again, shows that "Follow redirects" is checked again.{}

Expected:
**

The checked/unchecked state of the "Follow redirects" should match what is configured for the item, not be hardcoded to checked.

Extra remarks:

I tested this on 6.4.6 and the buggy behaviour was there. On Zabbix version 6.0 the expected behaviour is observed.



 Comments   
Comment by Andrejs Griščenko [ 2023 Dec 04 ]

Resolved in development branch feature/ZBX-23699-6.4.

Comment by Andrejs Griščenko [ 2023 Dec 06 ]

Fixed in:

Generated at Sat Apr 26 05:38:09 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.