id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,branch,changelog,apichanges,internalchanges 10668,"Cut and paste of attachment name leads to zero-width character in string, preventing image macro from displaying attachment",Ryan J Ollos ,Jun Omae,"The following scenario might qualify as user error, but I could imagine some other users making the error, so I thought it might be worthwhile to report it. The scenario is, I frequently upload image attachments with long filenames. Being lazy and not wanting to type out some long filename, I highlight and copy the filename from the attachment section of the ticket, and paste the filename into the comment box, inside a call to the Image macro. Frequently, I find that the Image macro can't link to the attachment, even though everything looks fine in the wiki markup. The issue seems to be that a zero width UTF character (E2 80 8B) can get inserted into the comment box during the paste operation, but they are not visible in the comment dialog. Clicking on the attachment though, we get URLs like like `/attachment/ticket/1228/MilestoneProgressBar.png%E2%80%8B`, which is what pointed me towards the issue. I'll show some screen captures and then attempt to demonstrate the issue. I tested this out before posting here in demo-0.12:ticket/5002. [[Image(Attachment.png,100%)]] ---- [[Image(AddAndThenEditAComment.png,100%)]] ---- [[Image(AttachmentNotLinked.png,100%)]] ---- [[Image(InvalidAttachment.png)]] ---- === Related branches - repos:jomae.git:t10668/css-content-prop",defect,closed,normal,1.0,wiki system,0.12.3,normal,fixed,attachment link,,,The `Image` wiki macro is robust w.r.t. Zero-width whitespace unicode characters (as can be found after copy/paste of attachment names from the Trac pages),,