Closed Bug 494072 Opened 16 years ago Closed 16 years ago

editvalues.cgi lets you edit product names

Categories

(Bugzilla :: Administration, task)

3.3.4
task
Not set
major

Tracking

()

RESOLVED FIXED
Bugzilla 3.4

People

(Reporter: LpSolit, Assigned: LpSolit)

References

Details

(Keywords: regression)

Attachments

(1 file)

Product names should only be editable from editproducts.cgi. Moreover, editvalues.cgi doesn't call check_can_admin_product(). Products are not standard fields and should be excluded from all editvalues.cgi actions.
Flags: blocking3.4+
Max, do you think we should add an is_editable => 0|1 attribute to Bugzilla::Field::DEFAULT_FIELDS and let editvalues.cgi looks for {is_select => 1, is_editable => 1} or add a @black_list = ('product') to editvalues.cgi and exclude fields listed there?
(In reply to comment #1) > Max, do you think we should add an is_editable => 0|1 attribute to > Bugzilla::Field::DEFAULT_FIELDS and let editvalues.cgi looks for {is_select => > 1, is_editable => 1} or add a @black_list = ('product') to editvalues.cgi and > exclude fields listed there? Hmm. Right now, I was thinking more that we'd add a block list for SELECT fields that shouldn't be edited by the interface.
Attached patch patch, v1Splinter Review
Assignee: administration → LpSolit
Status: NEW → ASSIGNED
Attachment #379088 - Flags: review?(mkanat)
Comment on attachment 379088 [details] [diff] [review] patch, v1 Asking Greg too as Max seems very busy.
Attachment #379088 - Flags: review?(ghendricks)
Attachment #379088 - Flags: review?(mkanat)
Attachment #379088 - Flags: review?(ghendricks)
Attachment #379088 - Flags: review+
Comment on attachment 379088 [details] [diff] [review] patch, v1 Looks good to me. I trust your testing.
Flags: approval3.4+
Flags: approval+
tip: Checking in editvalues.cgi; /cvsroot/mozilla/webtools/bugzilla/editvalues.cgi,v <-- editvalues.cgi new revision: 1.39; previous revision: 1.38 done 3.3.4: Checking in editvalues.cgi; /cvsroot/mozilla/webtools/bugzilla/editvalues.cgi,v <-- editvalues.cgi new revision: 1.38.2.1; previous revision: 1.38 done
Status: ASSIGNED → RESOLVED
Closed: 16 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: