ExportXMLWordPrintable

    • S26-W46/47, S26-W48/49
    • 1
    • 1

      Steps to reproduce:

      1. Create a Script item with body return value; and one parameter, name = 255 characters i.e.
        111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111

        value = any

      2. Test item in configuration window
      3. Observe Value = {} instead of the parameter object.

      Result:

      At the same time, data collection works fine:

      Debug:
      Request sent to server

      {
        "request": "item.test",
        "sid": "<frontend session id>",
        "data": {
          "item": {
            "type": 21,
            "key": "script.test",
            "value_type": 4,
            "params": "return value;",
            "parameters": { "111(...)111": "2" },
            "timeout": "3s"
          },
          "options": {}
        }
      }
      

      Server log for the same request:

      406:20260617:092358.896 trapper got request 'item.test'
      406:20260617:092358.896 In zbx_trapper_item_test()
      406:20260617:092358.897 In zbx_trapper_item_test_run()
      406:20260617:092358.897 key:'script.test'
      406:20260617:092358.897 In get_value() key:'script.test'
      406:20260617:092358.897 End of zbx_trapper_item_test_run():SUCCEED
      406:20260617:092358.897 trapper_item_test() json.buffer:'{}'
      406:20260617:092358.897 End of zbx_trapper_item_test()
      

      Response returned to the frontend:

      {"response":"success","data":{"item":{"result":"{}","eol":"LF"},"preprocessing":{"steps":[],"result":"{}"}}}
      

      The same request with a 254-character name returns the full object.

            Assignee:
            Aleksandrs Demidovs
            Reporter:
            Michal Kudlacz
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 20h Original Estimate - 20h
                20h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 48.5h
                48.5h