Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-3615

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

XMLWordPrintable

      NOTE: This bug report is for JIRA Service Desk Server. Using JIRA Service Desk Cloud? 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.

              Unassigned Unassigned
              mnassette MJ (Inactive)
              Votes:
              11 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: