Closed Bug 729510 Opened 13 years ago Closed 13 years ago

attachment upload via XML/RPC doesn't work

Categories

(Bugzilla :: WebService, defect)

4.0.1
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 640756

People

(Reporter: dvotino, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.53.11 (KHTML, like Gecko) Version/5.1.3 Safari/534.53.10 Steps to reproduce: Added a Bug via the BugAdd interface, then tried to add an attachment to it. As per API description I base64 encoded the file content (a jpeg in my case). Actual results: It got added as an attachment, but when I open it, I see the base64 encoded version of the file. So it didn't decode it before saving. Expected results: The file content should have been base64 decoded before creating the attachment instance in the add_attachment method of the WebServices/Bug.pm module.
You must also tell XML-RPC that your attachment is encoded as base64. Simply encoding it is not enough.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.