Closed Bug 126571 Opened 23 years ago Closed 22 years ago

param removal is shown to users in userprefs.cgi

Categories

(Bugzilla :: User Accounts, defect, P3)

2.15
defect

Tracking

()

RESOLVED FIXED
Bugzilla 2.16

People

(Reporter: justdave, Assigned: myk)

Details

Attachments

(1 file, 2 obsolete files)

I cvs updated a local install today...  among the changes picked up was the
removal of the strictvaluechecks param.

I visited userprefs.cgi while logged in with my account, and was told just below
the tabs and above the password change form that the strictvalue checks param
was no longer used and had been removed from my params file.

Why is this being shown to users on the prefs page?  This is an admin thing, and
end-users shouldn't see it.
This patch moves the parameter deletion code into checksetup.pl so that it
happens on upgrade rather than the first time the parameters file gets
re-written afterwards.	I had to require globals.pl to use defparams.pl's
WriteParams function to write the new parameters out to disk, which meant
removing redundant code from checksetup.pl and changing the name of the
"GroupExists" function in checksetup.pl to avoid conflicts with the same-named
but differently-functioning equivalent in globals.pl

With this patch, checksetup.pl's `which mysql
This patch moves the parameter deletion code into checksetup.pl so that it
happens on upgrade rather than the first time the parameters file gets
re-written afterwards.	I had to require globals.pl to use defparams.pl's
WriteParams function to write the new parameters out to disk, which meant
removing redundant code from checksetup.pl and changing the name of the
"GroupExists" function in checksetup.pl to avoid conflicts with the same-named
but differently-functioning equivalent in globals.pl

With this patch, checksetup.pl's `which mysql` call gives the error "which: no
mysql in ((null))".  Not sure why this is happening.
Comment on attachment 70899 [details] [diff] [review]
patch v1: fixes problem; has issues

Duplicate
Attachment #70899 - Attachment is obsolete: true
Not sure if this is a problem, bug I remember some trouble with checksetup.pl
requiring globals.pl because globals.pl calls "do 'localconfig';", whereas the
initial localconfig is only created by checksetup.pl.   
You get that error because globals.pl removes $ENV{'PATH'}....
The main issue was polluting the namespace within checksetup.pl.  Creating the
variables in localconfig depends on those variables not already existing after a
do localconfig.  Since globals.pl provides defaults for some of the variables in
localconfig in case localconfig is missing/broken, those variables wind up
existing in checksetup.pl if globals.pl gets required, and a blank or missing
localconfig won't get completed correctly.
Moving "require 'globals.pl';" below the "localconfig" stuff solves the
localconfig variable definition problem as well as the mysql path problem.
Attachment #70900 - Attachment is obsolete: true
Moving to 2.16 to keep this flowing, but this might not happen for 2.16.
Priority: -- → P3
Target Milestone: --- → Bugzilla 2.16
Comment on attachment 72432 [details] [diff] [review]
patch v2: resolves issues

Why the change from GroupExists to GroupDoesExist? This seems arbitrary.

It all looks good apart from that.

Gerv
>Why the change from GroupExists to GroupDoesExist? This seems arbitrary.

Because another function called "GroupExists" already exists.
Comment on attachment 72432 [details] [diff] [review]
patch v2: resolves issues

2xr=gerv.

Gerv
Attachment #72432 - Flags: review+
Checking in checksetup.pl;
/cvsroot/mozilla/webtools/bugzilla/checksetup.pl,v  <--  checksetup.pl
new revision: 1.137; previous revision: 1.136
done
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: