Cut and paste of attachment name leads to zero-width character in string, preventing image macro from displaying attachment
|Reported by:||Owned by:||Jun Omae|
Description (last modified by )
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.
Change History (29)
comment:4 by , 8 years ago
|Summary:||Cut and paste of attachment name leads to zero-width in string, preventing image macro from displaying attachment → Cut and paste of attachment name leads to zero-width character in string, preventing image macro from displaying attachment|
comment:11 by , 8 years ago
|Keywords:||attachment link added|