Typo in official Mattermost media type template: 'fallbac' instead of 'fallback'

XMLWordPrintable

    • Type: Problem report
    • Resolution: Fixed
    • Priority: Trivial
    • Affects Version/s: 6.0.42, 6.0.43, 7.0.21, 7.0.22, 7.4.5, 7.4.6
    • Component/s: Templates (T)
    • None
    • Environment:
      Zabbix 6.0.37 (running on Linux)
    • 5

      A typo has been identified in the official Mattermost media type template script: the attachment property fallback is misspelled as fallbac inside the createMessage function.

      Impact

      Because the attachment does not match Mattermost API expectations, notifications can:

      • lose their plain-text summary (fallback text), or
      • fail to display correctly in mobile notifications and desktop popups.

      Steps to Reproduce

      1. Open the official Mattermost media type template script.
      2. Locate the createMessage function.
      3. Find the line where the attachment is built and observe the typo:
        fallbac: params.alert_subject
        

      Verification

      Confirmed the typo exists in the official repository branches:

      • release/6.0
      • release/6.4
      • release/7.0
      • master

      Suggested Fix

      Update the property name from fallbac to fallback (around line ~354 in the template script).

      Patch (Minimal Change)

      Unable to find source-code formatter for language: diff. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml- fallbac: params.alert_subject,
      + fallback: params.alert_subject,
      

      Expected Result

      Mattermost notifications include a plain-text fallback summary and render consistently on mobile devices and desktop popups.

      Actual Result

      Fallback summary is missing or notifications render inconsistently due to the incorrect property name (fallbac).

        1. image-2026-04-30-07-17-34-918.png
          11 kB
          Sava Mansurovs
        2. image-2026-04-30-07-17-39-482.png
          12 kB
          Sava Mansurovs

            Assignee:
            Sava Mansurovs
            Reporter:
            Leopoldo Briens
            Team INT
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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