Edgewall Software

Ticket #6447 (closed enhancement: wontfix)

Opened 13 months ago

Last modified 10 months ago

show content of attached doc/xls/pdf/.. files

Reported by: anonymous Owned by: jonas
Priority: normal Milestone: not applicable
Component: attachment Version:
Severity: normal Keywords: pdf, word, doc
Cc:

Description

would be nice to have a macro (like the Makro), which shows the content of an attached file

Attachments

Change History

  Changed 13 months ago by athomas

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

This will not go into Trac core. You should open a Request-a-Hack ticket on TracHacks.

  Changed 11 months ago by anonymous

  • status changed from closed to reopened
  • resolution wontfix deleted

this needs be put into the core if trac want to be more robust a better ticket management system

follow-up: ↓ 4   Changed 11 months ago by anonymous

  • priority changed from normal to highest
  • component changed from general to attachment
  • severity changed from normal to major
  • milestone set to 0.10.5

honestly who doesn't attach these types of files

in reply to: ↑ 3   Changed 11 months ago by eblot

  • priority changed from highest to normal
  • status changed from reopened to closed
  • resolution set to wontfix
  • severity changed from major to normal
  • milestone 0.10.5 deleted

Replying to anonymous:

honestly who doesn't attach these types of files

Sane people ?

follow-up: ↓ 9   Changed 11 months ago by henke.mike@…

  • status changed from closed to reopened
  • severity changed from normal to major
  • priority changed from normal to high
  • milestone set to 0.10.5
  • keywords pdf, word, doc added
  • resolution wontfix deleted

So trac should be not extended to and integrated with other standard systems, most sane business use like word docs and pdf files?

  Changed 11 months ago by nkantrowitz

  • status changed from reopened to closed
  • resolution set to wontfix

Make a patch that implements this, and then we will talk. +1 on making this a plugin.

  Changed 11 months ago by nkantrowitz

  • priority changed from high to normal
  • severity changed from major to normal
  • milestone changed from 0.10.5 to not applicable

  Changed 10 months ago by henke.mike@…

  • status changed from closed to reopened
  • resolution wontfix deleted

I don't think this is as complicated as a plugin. Trac just need to recognize MIME content type of the page by extension (.pdf, .doc, .xls) and then set the content type. The content type determines how the browser or client interprets the page contents. The following are some of the content type values you can use:

application/msword application/msexcel application/pdf

I looked at the trac.ini file under mimiviewer but it isn't clicking for me. I think the mime_map needs changed like "text/x-dylan:dylan,text/x-idl:ice,text/x-ada:ads:adb :application/pdf:pdf "

in reply to: ↑ 5   Changed 10 months ago by hyuga <hyugaricdeau@…>

  • status changed from reopened to closed
  • resolution set to wontfix

Replying to henke.mike@gmail.com:

So trac should be not extended to and integrated with other standard systems, most sane business use like word docs and pdf files?

At my business (which is sane in some areas moreso than others) there are several people who use AutoCAD on a daily basis. Are you suggesting that attached AutoCAD files should be shown?

Supporting Word and PDF is one thing, but then where do you stop? Why not Excel spreadsheets? Why not Open Office documents? Presentations? Why, the Trac devs could just drop everything and spend all day writing platform independent engines to render every file format imaginable in HTML.

  Changed 10 months ago by henke.mike@…

Good point. Maybe trac should be more friendly to customizing different attachments types inline (in browser) instead of actually implementing the specific attachment types. I still haven't found any good examples to do this and I bet the sane Trac devs actually do with their attachments whether being autoCAD, pdfs, doc, etc, which ever they use so they don't have to download the attachments everytime.

  Changed 10 months ago by hyuga <hyugaricdeau@…>

Er, there already is, in the form of IHTMLPreviewRenderer. But you'd still have to write a custom implementation to display most any file format that isn't already supported. There's just no way around that. But the fact that that interface exists is why this would be a plugin candidate.

  Changed 10 months ago by henke.mike@…

Cool. Thanks. I will take a look @ IHTMLPreviewRenderer

  Changed 10 months ago by henke.mike@…

any examples of how to use iIHTMLPreviewRenderer with a supported and unsupported file formats? i searched the trac site and didn't find any except a brief mention [WikiContext]. thanks in advance

  Changed 10 months ago by anonymous

  • status changed from closed to reopened
  • resolution wontfix deleted

  Changed 10 months ago by eblot

  • status changed from reopened to closed
  • resolution set to wontfix

  Changed 10 months ago by anonymous

great everyone is so helpful in answering questions, nice to know this community is so open and friendly

  Changed 10 months ago by henke.mike@…

  • status changed from closed to reopened
  • resolution wontfix deleted

I did get a suggestion. "dont use the direct way via trac my.doc but via web-server [http:/.../svn/my.doc]." couldn't this link be easily added to the attachment section of the ticket along with on the trac attachment linked page?

Or couldn't somehow the attachment/ticket use wiki format like to embed attachments similiar to images

Error: Macro Image(sane.jpg) failed
Attachment 'ticket:6447: sane.jpg' does not exist.
but like

Error: Failed to load processor Object
No macro or processor named 'Object' found

or

Error: Failed to load processor Object
No macro or processor named 'Object' found

  Changed 10 months ago by anonymous

duplicate Ticket #2883

  Changed 10 months ago by anonymous

related Ticket #5718

  Changed 10 months ago by anonymous

related Ticket but closed as duplicate #6132

  Changed 10 months ago by hyuga <hyugaricdeau@…>

  • status changed from reopened to closed
  • resolution set to wontfix

If you want to include examples, prefix them with ! to disable the macro processing. For example, ![[Image(sane.jpg)]] produces [[Image(sane.jpg)]]

At any rate, if you want a macro to embed object tags, that's different, and I'm sure such a thing is already out there. But such a thing also has security risks, which is why it's probably not included in the core. Now please stop reopening this ticket.

Add/Change #6447 (show content of attached doc/xls/pdf/.. files)

Author



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