Closed
Bug 494072
Opened 16 years ago
Closed 16 years ago
editvalues.cgi lets you edit product names
Categories
(Bugzilla :: Administration, task)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.4
People
(Reporter: LpSolit, Assigned: LpSolit)
References
Details
(Keywords: regression)
Attachments
(1 file)
1.29 KB,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
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+
![]() |
Assignee | |
Comment 1•16 years ago
|
||
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?
Comment 2•16 years ago
|
||
(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.
![]() |
Assignee | |
Comment 3•16 years ago
|
||
Assignee: administration → LpSolit
Status: NEW → ASSIGNED
Attachment #379088 -
Flags: review?(mkanat)
![]() |
Assignee | |
Comment 4•16 years ago
|
||
Comment on attachment 379088 [details] [diff] [review]
patch, v1
Asking Greg too as Max seems very busy.
Attachment #379088 -
Flags: review?(ghendricks)
Updated•16 years ago
|
Attachment #379088 -
Flags: review?(mkanat)
Attachment #379088 -
Flags: review?(ghendricks)
Attachment #379088 -
Flags: review+
Comment 5•16 years ago
|
||
Comment on attachment 379088 [details] [diff] [review]
patch, v1
Looks good to me. I trust your testing.
Updated•16 years ago
|
Flags: approval3.4+
Flags: approval+
![]() |
Assignee | |
Comment 6•16 years ago
|
||
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.
Description
•