File Attachments Names Were Not Stored in Media by Attachment Import

XMLWordPrintable

    • 4
    • Severity 2 - Major

      Problem Description

      Not all customers are affected

      The new issue view that relies on getting metadata from the Media store for display and for download link. If an instance done attachment import before, likelihood that it will replace the attachment name with the directory instead, causing discrepancy when viewing issue using this new feature.

      This is due to during attachment import, it populates the metadata with the directory order instead of the actual name of the file.

      "name": "attachments\/EXAMPLE\/10000\/EXAMPLE-577\/12345",
      

      The expected result should be:

      "name": "filename.docx",
      

      This has caused the attachments to be viewed as ID and downloaded as ID instead of it's actual filename on the new issue view.

      Steps to replicate

      1. At one issue, attach a new file, fetch the metadata from Media. Noticed that the name is stored as the filename
      2. Run attachment import for the same file
      3. Noticed that media will recreate a new file id and fetching the metadata will have the name stored as the directory order
        This is not visible to customers, and only through internal tools we are able to retrieve this information

      Workaround

      Switch back to old issue view by turning off the new issue view from user profile

            Assignee:
            Anatoly Shuvalov
            Reporter:
            Richie Gee (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: