https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292009-09-21T13:31:20ZRedmineRedmine - Patch #3782: broken downloads of attached files after trac import due to missing mime type definitionshttps://www.redmine.org/issues/3782?journal_id=110772009-09-21T13:31:20ZBabar O'Cap
<ul></ul><p>+1</p> Redmine - Patch #3782: broken downloads of attached files after trac import due to missing mime type definitionshttps://www.redmine.org/issues/3782?journal_id=110802009-09-21T15:43:41ZBabar O'Cap
<ul><li><strong>File</strong> <a href="/attachments/2564">new_mime_types.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/2564/new_mime_types.patch">new_mime_types.patch</a> added</li></ul><p>Here a patch with new mime types :<br />doc, xls, ppt, pps, docx, xlsx, ppsx, pptx, 7zip, odt, ods, odp, csv ...</p> Redmine - Patch #3782: broken downloads of attached files after trac import due to missing mime type definitionshttps://www.redmine.org/issues/3782?journal_id=133482009-12-29T07:28:36ZAndrea Campi
<ul></ul><p>+1, this is a small issue but a boring one.</p> Redmine - Patch #3782: broken downloads of attached files after trac import due to missing mime type definitionshttps://www.redmine.org/issues/3782?journal_id=133522009-12-29T13:21:52ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Resolved</i></li><li><strong>Target version</strong> set to <i>0.9.0</i></li></ul><p>See <a class="changeset" title="Auto-detect attachment content type when blank (#3782)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3258">r3258</a>.</p> Redmine - Patch #3782: broken downloads of attached files after trac import due to missing mime type definitionshttps://www.redmine.org/issues/3782?journal_id=133692009-12-29T22:56:49ZAndrea Campi
<ul></ul><p>Actually, I was wrong, it seems for me (or rather, for one of users) Attachment.content_type is not null, but it contains 'text/html' instead of 'application/pdf'.<br />Off to debug this some more...</p>
<p>The commit does look good though :)</p> Redmine - Patch #3782: broken downloads of attached files after trac import due to missing mime type definitionshttps://www.redmine.org/issues/3782?journal_id=134192010-01-05T14:12:05ZBerk Demirkır
<ul></ul><p><a class="changeset" title="Auto-detect attachment content type when blank (#3782)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3258">r3258</a> causes Internal Error when downloading mime-typeless files. I've just reverted back and it works fine. (filename was a43)</p> Redmine - Patch #3782: broken downloads of attached files after trac import due to missing mime type definitionshttps://www.redmine.org/issues/3782?journal_id=134202010-01-05T14:24:12ZBerk Demirkır
<ul></ul><p>I should note that my database was working on 0.8.7 version of Redmine. I've switched to trunk a week ago. All content_types are blank.</p>
<p>In log files, I was getting this error<br /><pre>
ArgumentError (:type option required):
app/controllers/attachments_controller.rb:43:in `download'
</pre></p> Redmine - Patch #3782: broken downloads of attached files after trac import due to missing mime type definitionshttps://www.redmine.org/issues/3782?journal_id=134212010-01-05T18:09:00ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>Berk Demirkır wrote:</p>
<blockquote>
<p><a class="changeset" title="Auto-detect attachment content type when blank (#3782)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3258">r3258</a> causes Internal Error when downloading mime-typeless files. I've just reverted back and it works fine. (filename was a43)</p>
</blockquote>
<p>Fixed in <a class="changeset" title="Fixed: error when downloading a file with no matching mime type (#3782)." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3281">r3281</a>.</p> Redmine - Patch #3782: broken downloads of attached files after trac import due to missing mime type definitionshttps://www.redmine.org/issues/3782?journal_id=134642010-01-09T09:55:04ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul><p>Merged in 0.9-stable in <a class="changeset" title="Merged r3258 and r3281 from trunk." href="https://www.redmine.org/projects/redmine/repository/svn/revisions/3286">r3286</a>.</p>