As a security precaution, we have turned on the setting "Require API key authentication for API requests" for everyone. If this has broken something, please contact bugzilla-admin@mozilla.org
Last Comment Bug 1243246 - Attachment data submitted via REST API must always be base64 encoded
: Attachment data submitted via REST API must always be base64 encoded
Status: RESOLVED FIXED
:
Product: bugzilla.mozilla.org
Classification: Other
Component: Documentation (show other bugs)
: Production
: Unspecified Unspecified
: -- normal (vote)
: ---
Assigned To: David Lawrence [:dkl]
:
:
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-26 19:50 PST by Byron Jones ‹:glob›
Modified: 2016-01-26 20:14 PST (History)
0 users
See Also:
Due Date:
QA Whiteboard:
Iteration: ---
Points: ---


Attachments

Description User image Byron Jones ‹:glob› 2016-01-26 19:50:39 PST
this was originally filed as a bmo bug, moved upstream, fixed upstream but not on bmo:

bug 1240752:

As discussed on IRC, attachments that are created using the REST API must always have their data base64 encoded, even if the data is marked as content_type plain/text.

The documentation wrongly specifies that the data can either be base64 or string instead.
Comment 1 User image David Lawrence [:dkl] 2016-01-26 20:14:00 PST
Yep. Thanks for the reminder. Done.

To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
   1912ffe..4d112f8  master -> master

Note You need to log in before you can comment on or make changes to this bug.