Steps to repro:
1) Create a Jira case
2) In the comments drag a file and submit
3) Create a different file with the same name and extension
4) Drag this file in a new comment and submit
Expected: The link in the second comment will open the file from step #4
Actual: Link in the second comment will open the file from step #2
More info: In the attached file area we will have the original file and the second file with some hash attached to it so they had unique names. For some reason in the second comment instead of having the link to the file with the hash, it points to the file without it
Usecase: I am adding an archive from the log directory which name doesn't change. There is often a lot of confusion from the devs about why the attached logs are from old builds when in fact the new logs are attached but linked incorrectly due to this Jira bug