Closed Bug 1232186 Opened 9 years ago Closed 9 years ago

Component.update and Component.delete are broken

Categories

(Bugzilla :: WebService, defect)

defect
Not set
major

Tracking

()

RESOLVED FIXED
Bugzilla 6.0

People

(Reporter: LpSolit, Assigned: LpSolit)

References

Details

Attachments

(1 file, 1 obsolete file)

First of all, both Component.update and Component.delete are inaccessible because they are not listed in PUBLIC_METHODS. Secondly, they do not work anyway because they try to call $user->can_admin_product() which doesn't exist.
Attached patch patch, v1 (obsolete) — Splinter Review
Attachment #8697855 - Flags: review?(dkl)
Comment on attachment 8697855 [details] [diff] [review] patch, v1 Review of attachment 8697855 [details] [diff] [review]: ----------------------------------------------------------------- Need to add changes to Bugzilla/API/1_0/Resource/Component.pm as well.
Attachment #8697855 - Flags: review?(dkl) → review-
Attached patch patch, v2Splinter Review
Remind me why we have exactly the same duplicated code in both files?
Attachment #8697855 - Attachment is obsolete: true
Attachment #8699670 - Flags: review?(dkl)
(In reply to Frédéric Buclin from comment #3) > Created attachment 8699670 [details] [diff] [review] > patch, v2 > > Remind me why we have exactly the same duplicated code in both files? Yet is not ideal. We decided to do this as the XMLRPC/JSONRPC (Bugzilla/WebService/* files) will be going away in a near future release. I could not come up with a clean way to share the old code and still support versioning without a lot of hacking. dkl
Comment on attachment 8699670 [details] [diff] [review] patch, v2 Review of attachment 8699670 [details] [diff] [review]: ----------------------------------------------------------------- r=dkl
Attachment #8699670 - Flags: review?(dkl) → review+
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git 21b3145..fbd124b master -> master
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: