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

API validation for ip ranges does not work correctly

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 4.0.0alpha5
    • API (A)
    • None

      API allow to fill trapper_hosts (Item), proxy_address (Proxy) fields with ip range interval.
      Steps to reproduce:

      • Find item with type 2(ITEM_TYPE_TRAPPER) or 19(ITEM_TYPE_HTTPAGENT)
      • Set trapper_hosts to 127.0.0.1-127.0.0.127
        Result: Item is updated
        Expected: Item is not updated, error is shown.
        8815:20180404:121022.011 trapper got '{"request":"sender data","data":[{"host":"DEV-800","key":"C","value":"444"}]}'
        8815:20180404:121022.011 In recv_senderhistory()
        8815:20180404:121022.011 In process_client_history_data()
        8815:20180404:121022.011 In parse_history_data()
        8815:20180404:121022.011 End of parse_history_data():SUCCEED processed:1/1
        8815:20180404:121022.011 In substitute_simple_macros() data:'127.0.0.0-127.0.0.127'
        8815:20180404:121022.013 cannot process item "C" trap: connection from "127.0.0.1" rejected, allowed hosts: "127.0.0.0-127.0.0.127"
      

            Unassigned Unassigned
            akucenko Anna Kucenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: