Closed
Bug 317489
Opened 20 years ago
Closed 20 years ago
Email preferences are not set for the new admin user
Categories
(Bugzilla :: Email Notifications, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.20
People
(Reporter: mkanat, Assigned: LpSolit)
Details
Attachments
(2 files, 1 obsolete file)
|
1.75 KB,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
|
1.44 KB,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
I just installed today's CVS Bugzilla, and I just noticed that when I went to the email-prefs screen, all my email prefs were disabled. I'm the checksetup-created admin user -- do we forget to create emailprefs for the admin user?
Or are they cleared the first time I visit userprefs.cgi, for some reason?
Does this also affect 2.20?
| Assignee | ||
Comment 1•20 years ago
|
||
I can reproduce the problem using 2.20+. The admin does't get anything. All "but not when (overrides above):" checkboxes are checked, all others are not.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking2.22?
Flags: blocking2.20.1?
Target Milestone: --- → Bugzilla 2.20
| Reporter | ||
Updated•20 years ago
|
Flags: blocking2.22?
Flags: blocking2.22+
Flags: blocking2.20.1?
Flags: blocking2.20.1+
| Assignee | ||
Comment 2•20 years ago
|
||
Ideally, we should call Bugzilla::User::insert_new_user() as suggested in this patch, but I suppose we cannot do that in checksetup.pl? In this case, we have to copy the code from this function into checksetup.pl, which is ugly (duplicated code).
Assignee: email-notifications → LpSolit
Status: NEW → ASSIGNED
Attachment #204434 -
Flags: review?(mkanat)
| Reporter | ||
Comment 3•20 years ago
|
||
Comment on attachment 204434 [details] [diff] [review]
non-working (?) and untested patch, v0.1
Works for me, on the tip.
Yeah, we should have always been doing that. I wonder why we weren't...
I only have two nits:
(1) Move the "require Bugzilla::User" up into the "Global Utility Library" section of checksetup. I'd like to keep all the "require" statements in one place.
(2) You don't actually need that 'import' statement, because you're doing the whole Bugzilla::User::insert_new_user.
Attachment #204434 -
Flags: review?(mkanat) → review+
| Assignee | ||
Comment 4•20 years ago
|
||
This one has been tested. ;)
Attachment #204434 -
Attachment is obsolete: true
Attachment #204482 -
Flags: review?(mkanat)
| Reporter | ||
Comment 5•20 years ago
|
||
Comment on attachment 204482 [details] [diff] [review]
patch, v1
Sure, looks good to me based on interdiff inspection. :-)
Attachment #204482 -
Flags: review?(mkanat) → review+
| Assignee | ||
Comment 6•20 years ago
|
||
Attachment #204486 -
Flags: review?(mkanat)
| Reporter | ||
Comment 7•20 years ago
|
||
Comment on attachment 204486 [details] [diff] [review]
backport for 2.20, v1
r=mkanat by inspection
Attachment #204486 -
Flags: review?(mkanat) → review+
| Assignee | ||
Updated•20 years ago
|
Flags: approval?
Flags: approval2.20?
Updated•20 years ago
|
Flags: approval?
Flags: approval2.20?
Flags: approval2.20+
Flags: approval+
| Assignee | ||
Comment 8•20 years ago
|
||
tip:
Checking in checksetup.pl;
/cvsroot/mozilla/webtools/bugzilla/checksetup.pl,v <-- checksetup.pl
new revision: 1.455; previous revision: 1.454
done
2.20:
Checking in checksetup.pl;
/cvsroot/mozilla/webtools/bugzilla/checksetup.pl,v <-- checksetup.pl
new revision: 1.412.2.12; previous revision: 1.412.2.11
done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Summary: We forget to create emailprefs for the admin user? → Email preferences are not set for the new admin user
You need to log in
before you can comment on or make changes to this bug.
Description
•