Closed Bug 505390 Opened 17 years ago Closed 17 years ago

WebService should throw an error if you try to add a private comment in Bug.add_comment but aren't in the insidergroup

Categories

(Bugzilla :: WebService, defect)

3.3.4
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.4

People

(Reporter: mkanat, Assigned: mkanat)

Details

Attachments

(2 files)

Right now if you try to add a private comment via Bug.add_comment, and you aren't in the insidergroup, it just fails silently, which seems like a bit of a security risk to me. (Not a security bug, just something that could cause security issues in Bugzilla clients if they don't account for it, which they really couldn't, since they can't know if a user is an insider or not.) We should throw an error that you aren't an insider, if you try to set "private => 1" and aren't in the insidergroup. This is a behavior change for the API, so I'm going to restrict it to 3.4.
Flags: blocking3.4+
Attached patch v1Splinter Review
Here we go. This just makes Bugzilla itself do it, which I think is sensible. Tested this with bz_webservice_demo.pl, acts correctly.
Assignee: webservice → mkanat
Status: NEW → ASSIGNED
Attachment #389609 - Flags: review?(LpSolit)
Attached patch v1 (3.4)Splinter Review
This is a backport for 3.4--we need to add the user error there (that's the only change).
Attachment #389610 - Flags: review?(LpSolit)
Comment on attachment 389609 [details] [diff] [review] v1 r=LpSolit
Attachment #389609 - Flags: review?(LpSolit) → review+
Attachment #389610 - Flags: review?(LpSolit) → review+
Comment on attachment 389610 [details] [diff] [review] v1 (3.4) Looks good. r=LpSolit
Flags: approval3.4+
Flags: approval+
Keywords: relnote
tip: Checking in Bugzilla/Bug.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Bug.pm,v <-- Bug.pm new revision: 1.285; previous revision: 1.284 done Checking in Bugzilla/WebService/Bug.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/WebService/Bug.pm,v <-- Bug.pm new revision: 1.39; previous revision: 1.38 done Checking in Bugzilla/WebService/Constants.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/WebService/Constants.pm,v <-- Constants.pm new revision: 1.26; previous revision: 1.25 done 3.4: Checking in Bugzilla/Bug.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Bug.pm,v <-- Bug.pm new revision: 1.276.2.9; previous revision: 1.276.2.8 done Checking in Bugzilla/WebService/Bug.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/WebService/Bug.pm,v <-- Bug.pm new revision: 1.33.2.3; previous revision: 1.33.2.2 done Checking in Bugzilla/WebService/Constants.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/WebService/Constants.pm,v <-- Constants.pm new revision: 1.24.2.1; previous revision: 1.24 done Checking in template/en/default/global/user-error.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/global/user-error.html.tmpl,v <-- user-error.html.tmpl new revision: 1.276.2.3; previous revision: 1.276.2.2 done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Added to the release notes in bug 506500.
Keywords: relnote
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: