-
Bug
-
Resolution: Fixed
-
Medium
-
2.3 Pro, 7.1.0, 7.2.0, 7.3.0, 7.4.0, 7.0.0, 7.6.8, 7.11.2, 7.12.0, 7.12.1, 7.12.2, 7.12.3, 8.5.1
-
2.03
-
78
-
Severity 3 - Minor
-
132
-
This request is for the Jira Core behavior of allowing files with the same name to be attached. A related behavior when pasting/drag n dropping images in the Service Desk customer portal, was tracked and solved in JSDSERVER-4100 Update existing attachment with same name, has been solved from Service Desk 4.1 onward.
Issue summary
Jira does not differentiate between attachments of same name in comments while it does in the attachment section.
Current Situation
Jira allows attaching more than one file with the same name. Instead of replacing the file, the issue will simply have more than one attachment with the same name. When the attachment is an image and another image with the same name is attached, the previous comments with inline image/attachments will be pointed to the latest updated image (including the thumbnails).
Steps to reproduce
- Create an issue.
- Attach an image, give it a meaningful name (e.g. sample-image.png).
- Add a comment, add attachment - either by visual editor or by using markup (e.g. same-name.png) so the thumbnail or full image will be displayed.
- Attach another image with the same name as in step 2 (e.g. same-image.png).
- At this point Jira will have 2 different attachment images rendered, both have same name. Jira has 1 comment with an attachment.
- Add a new comment with the image.png in it, it doesn't matter which one you choose (e.g. same-name.png)
- Notice - the above steps will 'work' also with attachments pasted directly from the clipboard (i.e. take a screen shot 1, then paste into the attachment area of the ticket, then take another screen shot and paste into the same area; while at first the thumbnails will look different, on hitting 'submit' button the thumbnails will change to show only 1 attachment)
Expected results
Jira shows the images/thumbnails according to the images that were attached and selected.
Actual results
The image/thumbnail shown in all old or new comments (with the same name) will be the one from the last image attached with that name.
Workaround
- Pasting an image in Jira will already give it a unique name, so the only way to provoke this is by manually adding files with the same name, the first workaround would be to use unique attachment/images names.
Notes
- In a Support/helpdesk environment, the admins/agents do not have control over the mail client that the customers use, which in most of the cases, image/attachments are pasted directly to the body of the mail causing the default file naming to be identical, making the workaround suggested difficult almost impossible to enforce and this can seriously cripple the usability of JIRA as the old comments (with the same file name) no longer represent the state that it should be in and to add to the pain, the incoming mail is being deleted upon creation which removes the reference to track back and causes confusion especially on a long running case where 4-5 inline images are added and they have to rely on the time recorded when the issue is added to reference it back.
- Impact on Service Desk (SOLVED: Both drag and drop and pasting images in the Customer Portal): there is impact caused in part by the behavior reported in this bug request in combination with another behavior on the SD Customer Portal, since this specific to Service Desk, the interest for an improvement is being tracked at
JSDSERVER-4100Update existing attachment with same name):- Customers cannot see the list of attachments from the customer portal, so they can only the single attachment across all comments in the mentioned case. Certain screenshot tools and/or inline attachments added via mail would be using the same attachment name for a file - delivering a bad user experience in customer portal.
- Pasting an image using ctlr+v in the customer portal will name the file as image.png, regardless of how many images are pasted, and this could cause that a customer adding one comment with 3 images with the same name will result in the 3 images looking as the same image from the visibility of the customer, causing a lot of confusion.
Proposed solutions
To have the ability to configure the attachments to be appended with time stamp. There should be a toggle in project level so that user get to choose if this only applies to specific projects. Also could consider wiki markup with a timestamp column, to place that information to point the attachment to the right one.
Original Description:
Frequently, we have users who upload images or project requirement Word docs to a JIRA project and when the project changes they upload an updated version of the document again. This ends up in showing the same file name twice.
Few possibilities:
1) Provide the user the ability to overwrite (update) an attachment they have already uploaded. (Even if they don't have manage attachments? Or only if they do? Not sure.)
2) When a user uploads a file with a filename that has already been uploaded, change the visible filename to myfile.gif (2) or something similar.
- causes
-
JSDSERVER-6475 Attachments with the same name through e-mail are not being identify by Jira Service Desk
- Closed
- duplicates
-
JRASERVER-16867 Allow attachments to be marked as superseded
- Closed
- has a derivative of
-
JRACLOUD-80252 When attaching a file with the same name in a comment, Jira renames the file, but not the reference to it
- Closed
-
JRASERVER-71490 When attaching a file with the same name in a comment, Jira renames the file, but not the reference to it
- Gathering Impact
-
JSDSERVER-4100 Provide the ability to append timestamps to attachment names to avoid image display problems when attachments have the same name
- Closed
- is duplicated by
-
JRASERVER-4051 Attachment Versioning
- Closed
-
JRASERVER-31401 Differentiate attachments with same filename
- Closed
-
JRASERVER-45018 Attachments to tickets are retrieved by filename, which may not be unique.
- Closed
- is related to
-
JSDSERVER-6809 When attaching an image using within the email body, the comment shows an incorrect image and end up with two different images
- Closed
-
JRASERVER-70844 Attaching an image using the "What you see what you get" panel in the comment section does not update the file name correctly in the comment
- Gathering Impact
-
JRASERVER-2367 Separate "delete attachment" permission
- Closed
-
JSDSERVER-4129 Better Handling of Attachments with Same Name
- Closed
-
PS-36003 Loading...
- relates to
-
JRACLOUD-2169 Update existing attachment with same name
- Closed
-
CONFSERVER-17874 Uploading a new version of image attachment shows the old version after image insertion
- Closed
-
JSDSERVER-5054 Pasting screenshots with the same name in the Customer Portal results in duplicate image display
- Closed
-
JSDSERVER-5609 Improve behavior when pasting images on Customer Portal
- Closed
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...