Closed Bug 907245 Opened 6 years ago Closed 6 years ago

Allow for URL params to also be passed with POST/PUT REST API requests

Categories

(Bugzilla :: WebService, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
Bugzilla 5.0

People

(Reporter: dkl, Assigned: dkl)

Details

Attachments

(1 file)

Currently for POST/PUT requests, CGI.pm will ignore any parameters passed as part of the query string. But you can call url_param to get the additional parameters and we can add them to the total params for a REST API request. Note, any parameters passed in the query string will override the same params if present in the request body.

For example, the following will be allowed:
PUT /bug/12345?username=USERNAME&password=PASSWORD

dkl
OS: Linux → All
Hardware: x86_64 → All
Target Milestone: --- → Bugzilla 5.0
Attached patch 907245_1.patchSplinter Review
Attachment #792916 - Flags: review?(glob)
Comment on attachment 792916 [details] [diff] [review]
907245_1.patch

nice, r=glob
Attachment #792916 - Flags: review?(glob) → review+
Flags: approval+
Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bugzilla/trunk
modified Bugzilla/WebService/Server/REST.pm
Committed revision 8706.
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.