Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-3615

Adding an attachment with an identical file name will change all existing references in a request

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for JIRA Service Desk Cloud. Using JIRA Service Desk Server? See the corresponding bug report.

      Summary

      If an attachment gets added to a customer request, which has an identical name to another attachment under the same request, all existing references to the original attachment will get adjusted to reflect the new attachment.

      Steps to Reproduce

      1. As a customer, add an attachment to a request. From the customer view, this issue will have a linked url displayed as <baseurl>/servicedesk/customershim/secure/attachment/<attachmentID1>/<attachmentID1>_<attachmentname>
      2. As an Agent, add an attachment to the same request, and choose "Add to issue only". The file name should be identical to the file as attached under step 1. This attachment is not visible from the customer view

      Expected Results

      The attachment added by the customer should remain being displayed as <baseurl>/servicedesk/customershim/secure/attachment/<attachmentID1>/<attachmentID1>_<attachmentname> and be accessible as such.

      Actual Results

      The url referencing the attachment in the customer view has changed to <baseurl>/servicedesk/customershim/secure/attachment/<attachmentID2>/<attachmentID2>_<attachmentname>

      Notes

      For the above setup, the files do not have to be identical, just the file name needs to be identical. This has been tested with both identical files, as well as with different files renamed to have identical names.

      Attachments

        1. image (3).png
          image (3).png
          70 kB
        2. image-2019-05-07-09-32-47-299.png
          image-2019-05-07-09-32-47-299.png
          88 kB
        3. image-2019-05-07-11-20-35-045.png
          image-2019-05-07-11-20-35-045.png
          53 kB
        4. image-2019-05-07-11-24-32-098.png
          image-2019-05-07-11-24-32-098.png
          69 kB

        Issue Links

          Activity

            People

              ldiniz Leonardo Diniz
              mnassette MJ (Inactive)
              Votes:
              70 Vote for this issue
              Watchers:
              65 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: