#3456: Issue with SVG file and tracd standalone daemon
--------------------+-------------------------------------------------------
 Reporter:  eblot   |       Owner:  jonas 
     Type:  defect  |      Status:  new   
 Priority:  normal  |   Milestone:        
Component:  tracd   |     Version:  devel 
 Severity:  normal  |    Keywords:  review
--------------------+-------------------------------------------------------
 I'm playing with the [th:wiki:SvnCcHelpersScript/RevTree RevTree] plugin
 which relies itself on the [th:wiki:GraphvizPlugin GraphvizPlugin].

 When Trac is run with the `tracd` standalone daemon and the
 [th:wiki:GraphvizPlugin GraphvizPlugin] outputs SVG data my browser only
 offers to save the file, rather than displaying the SVG graphics as an
 embedded image.

 Using the !LiveHttpHeaders extension for Firefox, it appears that `tracd`
 sends the SVG graphic as `application/octet-stream` content type, which is
 not a valid MIME type for SVG data.

 Trac only relies on the Python `mimetypes` library to detect the MIME type
 of a file, whereas Trac implements a more powerful MIME type recognition
 scheme in `trac.mimeview.api`

 I'm not sure whether the attached patch is valid, but it makes `tracd` to
 serve and identify properly the SVG files and eventually allows the
 [th:wiki:GraphvizPlugin GraphvizPlugin] to work with the standalone
 `tracd` daemon.

 Please comment.

-- 
Ticket URL: <http://trac.edgewall.org/ticket/3456>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to