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

Web scenario cookie problem

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 2.4.5
    • Server (S)
    • Arch Linux

      Using web scenario to test a web login using POST data does not work.

      after some testing using curl i fount that the problem could be the authentication cookie not read by zabbix after post data

      reading documentation i see that "All cookies are preserved during the execution of a single scenario"

      dig in into the code i found this :
      ./src/zabbix_server/httppoller/httptest.c

      LIne 389 : CURLE_OK != (err = curl_easy_setopt(easyhandle, CURLOPT_COOKIEFILE, "")) ||

      CURLOPT_COOKIEFILE is used by curl to read cookie , but is set to empty

      in my case i need to write/read a cookie so i try this one :

      CURLE_OK != (err = curl_easy_setopt(easyhandle, CURLOPT_COOKIEFILE, "/tmp/zabbix_cookie")) ||
      CURLE_OK != (err = curl_easy_setopt(easyhandle, CURLOPT_COOKIEJAR, "/tmp/zabbix_cookie")) ||

      rebuild the server , now the login step is working

            Unassigned Unassigned
            shizzy luca bianchi
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: