Multibyte characters are incorrectly displayed for binary value in some of the widgets (item card, item history))

XMLWordPrintable

    • S26-W16/17

      The binary value of multibyte characters is not displayed as expected in some of the widgets, which have option of Show value for binary item. For example, item history or item card widget.

      Steps to reproduce:

      1. Import host trapper_with_binary_item.yaml
      2. Add Item history widget on the dashboard, select item: bin
      3. Use base64 encoded value for trapper, for example: symbol: 🙂, encoded value: 8J+Zgg==
      4. Start the server, send the value to trapper:
        ./bin/zabbix_sender -z 127.0.0.1 -s test -k trap -o '8J+Zgg=='
        
      1. Observe results in latest data and item history widget for binary item

      Result:
      Latest data (display as plain text) contains the correct "8J+Zgg==" value.
      Item history widget displays: "XDM2MFwyMzdcMjMxXDIwMg==", which looks like encoded "\360\237\231\202", which is the symbol "🙂" in UTF-8 octal representation.

      See screenshot: 
      Widget:

      Latest data:

      Expected:
      Widget should display same value as latest data.
      See screenshot from 7.0, for same scenario:

            Assignee:
            Katerina Kuzmina
            Reporter:
            Nikita Gogolevs
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 1h
                1h