Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-2303

If POST is used in web scenario all next steps will be using POST

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.8, 1.8.2
    • Fix Version/s: 1.8.3
    • Component/s: Server (S)
    • Labels:
      None

      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)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hnsk Hannu Ylitalo
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: