Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

Last modified 10 years ago

#6390 closed defect (worksforme)

Cannot view attachment of a Ticket

Reported by: anonymous Owned by: Christian Boos
Priority: normal Milestone:
Component: attachment Version: 0.10.4
Severity: major Keywords: needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Not able to view an attachment.

Possible cause could be: I have a project with following directory structure

project
|   `-- attachments
|   `-- ticket
|       `-- 30
|-- conf
|-- htdocs
|-- log
|-- plugins
|-- templates
`-- wiki-macros

While the link to the attachment is http://<IP>/project/attachment/ticket/30/somefile

I notice that attachment directory is with extra 's' ( plural ).

Attachments (0)

Change History (6)

comment:1 by anonymous, 17 years ago

Just to mention this is a windows installation.

comment:2 by Christian Boos, 17 years ago

Keywords: needinfo added

attachments is the right spelling for the folder. Some questions:

  • what is the exact error / backtrace you're seeing?
  • does this happen just for one attachment (which filename?) or for all?

Anyway, this is most probably an installation issue, so double check if there wasn't any manual change later on (the attachments folder and its subfolders must be writable by the user running the Trac server).

in reply to:  description ; comment:3 by Emmanuel Blot, 17 years ago

Replying to anonymous:

I have a project with following directory structure

project
|   `-- attachments
|   `-- ticket
|       `-- 30

Is it? It should have been

project
|   `-- attachments
|      `-- ticket
|         `-- 30

Windows installation …
Give a try with another ticket, the ticket directory might have been moved with some user unexpected drag and drop action within an Explorer window ;-)

in reply to:  3 comment:4 by anonymous, 17 years ago

I don't see any backtrace

If I attach a txt file it works fine. However, if I attach *.patch files it does not work. Can u please suggest on the solution?

I think it is problem to the mime type. Is it possible to choose the mimetype or autodetect mimetypes while upload?

comment:5 by anonymous, 17 years ago

Can any one help me on how do I setup Trac for *.patch files to be visible?

in reply to:  3 comment:6 by Christian Boos, 17 years ago

Resolution: worksforme
Status: newclosed

Closing this now, as this was most likely a local installation issue.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.