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

Markdown is broken in Telegram media type

    XMLWordPrintable

Details

    • Problem report
    • Status: Confirmed
    • Trivial
    • Resolution: Unresolved
    • 5.0.30, 6.0.12, 6.2.6, 6.4.0beta5
    • None
    • Templates (T)
    • None
    • Team INT
    • Sprint 96 (Jan 2023), Sprint 97 (Feb 2023)

    Description

      Markdown (in parse modes Markdown, MarkdownV2) doesn't work in Telegram webhook because all markdown symbols are escaped after the fix in ZBX-20150. Now these modes are documented and thus must work properly.

      Even though ZBX-20150 reported the problem about markdown symbols in macro values (such symbols should be escaped indeed) the fix escaped all characters in the message altogether so now there is no way to send markdown-formatted messages.

      Zabbix should resolve this by either:

      1. Reverting the fix from ZBX-20150 and documenting the advice not to use Markdown/MarkdownV2 if macro values (e.g. host names) contain special characters.
      2. Removing official support of parse modes Markdown and MarkdownV2. Supported parse modes will be empty or HTML in this case.
      3. Introducing macro functions that escape values for the given macros. This option is a massive amount of work and should be a subject of a separate feature request.

      Attachments

        Activity

          People

            atocko Andrey Tocko
            Kalimulin Alex Kalimulin
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: