An inline text is added when adding attachments causing unexpected behaviour

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      Issue Summary

      In JSM after 5.17, an inline text (|thumbnail for images and [^file.ext] for other files) is automatically added when attaching files, whether by drag and drop or by using “Add attachments“. This can create a mismatch between the inline text and the actual uploaded attachment name, which results in an invalid inline text in the comment.

      Steps to Reproduce

      1. Add attachment in JSM 5.17.0 and later versions
      2. Add an attachment multiple times (for example, tree.png), and the default inline text will no longer match the attachment file name (where a number suffix is automatically added):

      Expected Results

      • The expected behaviour is the same as the one before JSM 5.17.0: no inline text is added, so the potential mismatch doesn't exist, and the default comment won't include 2 attachments.

      Actual Results

      • If tree.png is deleted from attachments, the inline text will fail to render and become invalid:
      • If tree.png is not deleted, the inline text renders, but the default comment shows duplicate attachments:

      Workaround

      The inline text can be manually deleted.

      Versions Tested

      Please confirm all versions that have been tested for this issue, and indicate whether the tested version is affected or not affected, below: 

      Testing Requirements Version Affected Version
      Customers Reported Version 10.3.10 Yes
      Most Recent Bug-Fix Release 11.1.1 Yes
      Previous Major Release 5.17.0  Yes 
      Most Recent LTS 10.3.12 Yes 
      Previous Supported LTS 5.12.28 No 
      Other Versions.. 5.16.1  No

        1. screenshot-3.png
          screenshot-3.png
          133 kB
        2. screenshot-2.png
          screenshot-2.png
          110 kB
        3. screenshot-1.png
          screenshot-1.png
          57 kB

              Assignee:
              Benjamin Woodforde
              Reporter:
              Kaili Gu (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: