Edgewall Software

Opened 12 years ago

Last modified 12 years ago

#10668 closed defect

Cut and paste of attachment name leads to zero-width in string, preventing image macro from displaying attachment — at Initial Version

Reported by: Ryan J Ollos <ryano@…> Owned by:
Priority: normal Milestone: 1.0
Component: wiki system Version: 0.12.3
Severity: normal Keywords: attachment link
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

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 (4)

by Ryan J Ollos <ryano@…>, 12 years ago

Attachment: Attachment.png added

by Ryan J Ollos <ryano@…>, 12 years ago

Attachment: AddAndThenEditAComment.png added

by Ryan J Ollos <ryano@…>, 12 years ago

Attachment: AttachmentNotLinked.png added

by Ryan J Ollos <ryano@…>, 12 years ago

Attachment: InvalidAttachment.png added
Note: See TracTickets for help on using tickets.