View Issue Details

IDProjectCategoryView StatusLast Update
0013405mantisbtattachmentspublic2011-10-22 15:05
Reporteragronholm Assigned Toatrol  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
Summary0013405: File attachments are corrupted on PostgreSQL
Description

When I attach a file to an issue, the data is corrupted when saving. If I download the uploaded file or extract the data out of the database directly, the contents are totally different. Not only that, but the MIME type is also wrong (text/plain; charset=us-ascii) when I download the file, despite it being correct in the database.

Steps To Reproduce

Open an issue and attach a PDF file to it. Download the file and observe that the contents are gibberish.

TagsNo tags attached.

Relationships

duplicate of 0012837 closeddregad Download Attachment doesn't work; Get some header information or Jabber 

Activities

atrol

atrol

2011-10-13 02:10

developer   ~0029953

Do you think your issue is a duplicate of 0012837 ?

If so, there is a workaround:
ALTER USER mantisbt SET bytea_output = 'escape';

agronholm

agronholm

2011-10-13 04:42

reporter   ~0029954

Yes, this looks like a dupe of 0012837. And the workaround works, thanks.