Ticket attachment link not working - path not created

Heya,

I’m having a problem with attachements of any size not getting saved or not
being linked properly. basically the attachment shows up in the ticket as a
link but the link doesnt work. For example I see I should have a
rt.site.com/Ticket/Attachemnt/9/27/filename.txt file per the link in the
ticket but when I click on the link I get a forbidden error… I can go look
in the “Ticket/Attachemnt” folder and I see that the path is not created…
If I manually create it and drop the file there the ticket then works fine.
I’ve searched the messages and see alot of info about sending attachments as
forwards or whatnot but nothing about this. I get the feeling that it should
be saving the attachment in the database so I’m not sure why I’m getting a
hard file system path in the first place… Any ideas would be appreciated.

Config:
rt-3.0.0 (although the same results from 2.0.15)
apache 1.3.27 as nobody
perl-suidperl 5.8.0

Cya,
Chris.

For example I see I should have a
rt.site.com/Ticket/Attachemnt/9/27/filename.txt file per the link in the
ticket but when I click on the link I get a forbidden error…

Probably something strange in your Apache config, have a look at access
permissions. Is your RT instance a VHost inheriting something from the
global config?

I get the feeling that it should
be saving the attachment in the database so I’m not sure why I’m
getting a
hard file system path in the first place…

Yes, attachments are stored in the DB, so you should check directly in
the DB whether they get stored.
The attachment URLs are just made up to look like there was an actual
file, so that browsers will suggest the original file name when
saving/downloading.

Sebastian

Sebastian Flothow
sebastian@flothow.de
#include <stddisclaimer.h>

Let me guess. you’re using a FileMatch directive in your httpd.conf.
Which means that apache doesn’t know to hand off that request to RT.On Sat, Mar 29, 2003 at 08:43:48PM +0100, Sebastian Flothow wrote:

For example I see I should have a
rt.site.com/Ticket/Attachemnt/9/27/filename.txt file per the link in the
ticket but when I click on the link I get a forbidden error…

Probably something strange in your Apache config, have a look at access
permissions. Is your RT instance a VHost inheriting something from the
global config?

I get the feeling that it should
be saving the attachment in the database so I’m not sure why I’m
getting a
hard file system path in the first place…

Yes, attachments are stored in the DB, so you should check directly in
the DB whether they get stored.
The attachment URLs are just made up to look like there was an actual
file, so that browsers will suggest the original file name when
saving/downloading.

Sebastian


Sebastian Flothow
sebastian@flothow.de
#include <stddisclaimer.h>


rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

http://www.bestpractical.com/rt – Trouble Ticketing. Free.