Closed
Bug 1232186
Opened 9 years ago
Closed 9 years ago
Component.update and Component.delete are broken
Categories
(Bugzilla :: WebService, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 6.0
People
(Reporter: LpSolit, Assigned: LpSolit)
References
Details
Attachments
(1 file, 1 obsolete file)
3.58 KB,
patch
|
dkl
:
review+
|
Details | Diff | Splinter Review |
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.
![]() |
Assignee | |
Comment 1•9 years ago
|
||
Attachment #8697855 -
Flags: review?(dkl)
Comment 2•9 years ago
|
||
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-
![]() |
Assignee | |
Comment 3•9 years ago
|
||
Remind me why we have exactly the same duplicated code in both files?
Attachment #8697855 -
Attachment is obsolete: true
Attachment #8699670 -
Flags: review?(dkl)
Comment 4•9 years ago
|
||
(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 5•9 years ago
|
||
Comment on attachment 8699670 [details] [diff] [review]
patch, v2
Review of attachment 8699670 [details] [diff] [review]:
-----------------------------------------------------------------
r=dkl
Attachment #8699670 -
Flags: review?(dkl) → review+
![]() |
Assignee | |
Comment 6•9 years ago
|
||
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.
Description
•