Edgewall Software

Ticket #6390 (closed defect: worksforme)

Opened 14 months ago

Last modified 10 months ago

Cannot view attachment of a Ticket

Reported by: anonymous Owned by: cboos
Priority: normal Milestone:
Component: attachment Version: 0.10.4
Severity: major Keywords: needinfo
Cc:

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

Change History

  Changed 14 months ago by anonymous

Just to mention this is a windows installation.

  Changed 14 months ago by cboos

  • 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 ; follow-ups: ↓ 4 ↓ 6   Changed 14 months ago by eblot

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   Changed 14 months ago by anonymous

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?

  Changed 14 months ago by anonymous

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

in reply to: ↑ 3   Changed 10 months ago by cboos

  • status changed from new to closed
  • resolution set to worksforme

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

Add/Change #6390 (Cannot view attachment of a Ticket)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from cboos. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.