https://sourceforge.net/apps/trac/sourceforge/ticket/24040
On the tracker, roughly every other try to download an attachment fails. While the mime headers indicates the filename and content type of the attachment (e. g. image/png) the actual content is an HTML error document:
ERROR
Could not get ArtifactFile filenameNote that the error document is not visible in most cases unless you save the file as something.html and open it in a browser instead of the correct application for the original attachment.
We started getting reports of this a few weeks ago, and we continue to get infrequent reports of this (and I'm able to reproduce this most of the time).
Since the code hasn't changed recently, and due to the inconsistent behavior, I suspect the issue isn't in the code, but as we continue to get reports of this, I think this is worth investigating.
An example ticket with attachments you can test with is here: https://sourceforge.net/tracker/?func=detail&atid=414256&aid=3406768&group_id=17203
Originally by: zenitram
I confirm the issue, today.
examples:
https://sourceforge.net/tracker/?func=detail&atid=581181&aid=3480647&group_id=86862
https://sourceforge.net/tracker/?func=detail&atid=581184&aid=3483328&group_id=86862
This is often "Could not get ArtifactFile filename", and sometimes this is the right file.
This is the same as [#3638]
All these attachments should be working again now.