View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0010892 | mantisbt | api soap | public | 2009-09-01 06:45 | 2010-09-19 03:12 |
| Reporter | tpo | Assigned To | rombert | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 1.1.8 | ||||
| Summary | 0010892: followup of 0010235 : can't add binary attachment with cropper because attachment is base64-decoded twice | ||||
| Description | Hi, I use mantis 1.1.8 and I can't add screnshot attachment anymore. I did a lot of debugging and I found the culprit : diff in 0010235 I don't know why, but in mc_issue_attachment_add, $p_content is already base64 decoded. If I revert the final line to return mci_file_add( $p_issue_id, $p_name, $p_content, $p_file_type, 'bug' ); attachment are not corrupted anymore. | ||||
| Tags | No tags attached. | ||||
|
I use cropper to store screenshot |
|
|
Hi, I made the change detailed in 0010235 and I assume you're using the cropper plugin attached to 0007053. If the attachment is already decoded in mc_issue_attachment_add then it means the sender (cropper) is not encoding it before sending. That's an error on the cropper (or plugin, I don't know) side and should be fixed there |
|
|
Hi, I used wireshark to analyse stream from cropper and the picture was in base64. I think you will want to look at some example, so I will attach some traces tomorrow. |
|
|
In the Mylyn-Mantis connector we work with both versions, before and after 0010235. We have a simple version check, to see if we should base64 encode the file or not. |
|
|
This is a bug in the MantisConnect .NET client. When it attaches a file from disk, it doesn't base64 encode it. I'll keep this open until I do the following:
|
|
|
Actually this was determined to be an error in the SOAP API . Please see http://git.mantisbt.org/?p=mantisbt.git;a=commit;h=b836b267cfc77aa516968fe05d1804743df133d7 for details. |
|
|
This was fixed for bug 0011151. |
|