Closed
Bug 1199106
Opened 10 years ago
Closed 10 years ago
Calling /rest/bug/<bug_id> to add someone to the CC list doesn't work
Categories
(Bugzilla :: WebService, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: acornejo, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36
Steps to reproduce:
i am trying to use the REST api to add a cc to an existing bug.
I did a put request to /rest/bug/bug_id with the following contents:
{'cc': {'add': ['user@email.com']}, 'ids': [bug_id]}
Actual results:
Can't use string ("add") as a HASH ref while "strict refs" in use at Bugzilla/Bug.pm line 2491.
Expected results:
It should have added user@email.com to the bug with number bug_id.
I tested this in landfill.bugzilla.org/bugzilla-5.0-branch, and I am following the REST api documentation in http://bugzilla.readthedocs.org/en/latest/api/core/v1/bug.html#update-bug
In particular it says:
cc object
The users on the cc list. To modify this field, pass an object, which may have the following items:
add (array) User names to add to the CC list. They must be full user names, and an error will be thrown if you pass in an invalid user name.
remove (array) User names to remove from the CC list. They must be full user names, and an error will be thrown if you pass in an invalid user name.
Comment 1•10 years ago
|
||
dkl, can you reproduce this issue?
Summary: REST API update bug cc → Calling /rest/bug/<bug_id> to add someone to the CC list doesn't work
Comment 2•10 years ago
|
||
I cannot reproduce this issue with the latest code. Please let us know if this is still failing.
dkl
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•