[Rt-devel] Attachment filenames that include spaces

Warren Macey warren.macey at gmail.com
Fri Mar 9 17:09:07 EST 2007


I am having an issue with a new installation of RT.  Everything else is up
and running and configured when I noticed one oddity before releasing it to
our internal support staff.

If I attach a file to an email submission that has no spaces in the file
name then it will add the attachment to the ticket.  When I go into RT and
click on the attachment name the attachment is loaded into the browser
without issue.

However:

If I attach a file to an email submission that includes spaces in the file
name it will still add the attachement to the ticket but if I click on the
link added to the ticket the browser displays a red "X" only and the browser
URL has the name of the file at the end with the filename escaped with the
%20 replacing the space in the file name.

Example:
Attaching "Error Messsage.jpg" results in "
http://servername/rt/Ticket/Attachment/291/95/Error%20Message.jpg"

I think I need to parse the attachment file name before it is created and
replace the spaces with "_" in order to work around this so I added some
code to Attachment.pm but it didn't seem to do anything.

Has anyone run accross this and/or know where I might need to work around
this?

Regards,
Warren
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bestpractical.com/pipermail/rt-devel/attachments/20070309/e24312ad/attachment.htm


More information about the Rt-devel mailing list