Closed
Bug 234175
Opened 21 years ago
Closed 20 years ago
Remove deprecated ConnectToDatabase() and quietly_check_login()/confirm_login() calls
Categories
(Bugzilla :: Bugzilla-General, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.18
People
(Reporter: wicked, Assigned: wicked)
References
Details
Attachments
(1 file, 2 obsolete files)
35.51 KB,
patch
|
Details | Diff | Splinter Review |
Need to remove calls to ConnectToDatabase() because it's deprecated and actually does nothing. Database connection is established automatically in Bugzilla.pm. Uses of quietly_check_login() and confirm_login() will be changed to use Bugzilla->login directly. I think this is better to do in one big patch than to gradually change call when individual scripts are touched. This way we get rid of old code that just confuses things once and for all. Besides, this is simple enough change to get used hacking Bugzilla..
Assignee | ||
Comment 1•21 years ago
|
||
This patch removes redundant login in attachment.cgi and so should fix bug 149167.
Assignee | ||
Updated•21 years ago
|
Attachment #141377 -
Flags: review?
Assignee | ||
Updated•21 years ago
|
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Target Milestone: --- → Bugzilla 2.18
Comment 2•21 years ago
|
||
Comment on attachment 141377 [details] [diff] [review] Changes, v1 Since bbaetz wrote the Auth code, he's the best person to look at this
Attachment #141377 -
Flags: review? → review?(bbaetz)
Comment 3•21 years ago
|
||
Comment on attachment 141377 [details] [diff] [review] Changes, v1 You can leave out LOGIN_NORMAL; its teh default. I didn't do that in the compat code because of the ?: - it was clearer when mentioned explicitly. You don't need |use Bugzilla::Constants| in all cases then, either
Attachment #141377 -
Flags: review?(bbaetz) → review-
Assignee | ||
Comment 4•21 years ago
|
||
Attachment #141377 -
Attachment is obsolete: true
Assignee | ||
Updated•21 years ago
|
Attachment #141400 -
Flags: review?(bbaetz)
Updated•20 years ago
|
Attachment #141400 -
Flags: review?(kiko)
Comment 5•20 years ago
|
||
Comment on attachment 141400 [details] [diff] [review] Revised changes, v2 >Index: enter_bug.cgi >-confirm_login() if (!(AnyEntryGroups())); >+Bugzilla->login(LOGIN_REQUIRED) if (!(AnyEntryGroups())); Nit: I would rather you had fixed this to use unless, but it's not a blocker; I can do that before checking in if you like. r=kiko after a 15-minute read.
Attachment #141400 -
Flags: review?(kiko) → review+
Comment 6•20 years ago
|
||
Dave, this touches a lot of files, though it's fairly trivial. I've had a good look over it and there's nothing dangerous that I've found. Requesting approval so we can have it in sooner than later.
Flags: approval+
Updated•20 years ago
|
Flags: approval+ → approval?
Comment 8•20 years ago
|
||
Comment on attachment 141400 [details] [diff] [review] Revised changes, v2 This looks fine.
Attachment #141400 -
Flags: review?(bbaetz)
Updated•20 years ago
|
Flags: approval?
Updated•20 years ago
|
Flags: approval? → approval+
Comment 9•20 years ago
|
||
Unrotted this -- minor rejects that were easily fixed. This is what is going to be checked in.
Attachment #141400 -
Attachment is obsolete: true
Comment 10•20 years ago
|
||
Checked in -- thanks to Teemu for this great cleanup.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•