View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0011722 | mantisbt | api soap | public | 2010-03-29 12:02 | 2010-09-19 03:12 |
| Reporter | gonfva | Assigned To | rombert | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 1.2.0 | ||||
| Summary | 0011722: Problems attaching binary files | ||||
| Description | I have Mantis version 1.2.0 and I'm trying to send binary files via SOAP. I'm sending base64 encoded data, and then I try to get the attachment as the usual binary download. The nulls in the original file, get converted to \0 ("slash zero") in the downloaded file. | ||||
| Steps To Reproduce | 1.-Try to add via SOAP a file with only 3 bytes, all null (00 00 00). You send it base64 encoded as four 'A' (char 41 41 41 41) In other words I send AAAA via SOAP(which is the encoding for three nulls) and I get a file with 3 "\0" ("slash zero") strings | ||||
| Additional Information | File persist in database in my case. I think the problem is that when trying to save the file in the database we're inserting a String which gets converted nulls to \0 ("slash zero") I've managed to solve for me, not encoding in mc_issue_attachment_api.php, but on mci_file_api.php. For the record here comes the changes: Maybe related to bugs 0011151, 0011039 | ||||
| Tags | No tags attached. | ||||
|
I've committed a fix in the soap-attachments branch ( commit at http://git.mantisbt.org/?p=mantisbt.git;a=commit;h=b836b267cfc77aa516968fe05d1804743df133d7 ). Please verify that it does solve the problem you've reported. |
|
|
This was fixed for bug 0011151. |
|