[ZBX-2303] If POST is used in web scenario all next steps will be using POST Created: 2010 Apr 12 Updated: 2017 May 30 Resolved: 2010 Apr 14 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 1.6.8, 1.8.2 |
Fix Version/s: | 1.8.3 |
Type: | Incident report | Priority: | Major |
Reporter: | Hannu Ylitalo | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Description |
If there is POST data in some test step zabbix will use POST method for further steps even if they do not. This is caused by not resetting the curl handle and once CURLOPT_POSTFIELDS is set curl seems to set CURLOPT_POST to 1. Issue can be fixed by adding following to the while loop in process_httptest function: src/zabbix_server/httppoller/httptest.c: curl_easy_setopt(easyhandle, CURLOPT_POST, 0); This will default libcurl to using GET and only use POST where intended. I suppose this could also be added as else for: if(httpstep.posts[0] != 0) |
Comments |
Comment by Alexander Vladishev [ 2010 Apr 14 ] |
Available in pre-1.8.3 in r11493 |