| Anonymous | Login | Signup for a new account | 2013-05-19 09:15 EDT | ![]() |
| Main | My View | View Issues | Change Log | Roadmap | Wiki | ManTweet | Repositories |
| View Issue Details [ Jump to Notes ] [ Wiki ] [ Related Changesets ] | [ Issue History ] [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0013435 | mantisbt | administration | public | 2011-10-24 03:46 | 2013-04-06 09:24 | ||||
| Reporter | dregad | ||||||||
| Assigned To | dregad | ||||||||
| Priority | normal | Severity | minor | Reproducibility | always | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | 1.2.9 | ||||||||
| Target Version | 1.2.9 | Fixed in Version | 1.2.9 | ||||||
| Summary | 0013435: The obsolete checks should also verify configs in the db | ||||||||
| Description | In 1.2.x, the config_obsolete() function only checks for obsolete values in config files, but not in mantis_config_table. This is because at the time obsolete.php is called from check.php, a connection to the database has not yet been established. The behavior in 1.3.x is currently undefined, as the obsolete checks are currently not executed (see 0012885) | ||||||||
| Tags | 2.0.x check | ||||||||
| Attached Files | |||||||||
Relationships |
|||||||||||
|
|||||||||||
Notes |
|
|
vboctor (administrator) 2011-10-24 04:20 |
Should we depend on post install / upgrade steps to detect these rather than introducing extra queries? The other option is to only do these checks on admin login. |
|
dregad (developer) 2011-10-24 04:48 |
The code is relying on existing config_get() calls so a db query would be issued only if the data is not already in the cache. The "extra queries" are not executed systematically on login, but manually when admin/check.php is run (by admin obviously). |
|
vboctor (administrator) 2011-10-25 02:56 |
If we are only doing this as part of the post install checks, then there is no issues. |
|
dregad (developer) 2011-11-19 19:17 |
Obsolete options tests with the patch (1.2.x): ------------ Test 1: defined in config_inc.php Warning: The configuration option jpgraph_antialias is now obsolete ------------ Test 2: option with new recommended option defined in config_inc.php Warning: The configuration option reminder_recipents_monitor_bug is now obsolete please use reminder_recipients_monitor_bug instead. ------------ Test 3: defined in the database Warning: The configuration option show_update is now obsolete it is currently defined in the database configuration for: administrator: All Projects ------------ Test 4: defined both in config_inc.php and in the DB Warning: The configuration option graph_colors is now obsolete it is currently defined in config_inc.php, as well as in the database configuration for: All Users: All Projects, Test Project administrator: Test Project user2: All Projects ------------ Test 5: option with multiple new recommendations, defined in DB note: this case does not currently exist in obsolete.php config_obsolete( 'dummy', array( 'dummy_new_1','dummy_new_2' ) ); Warning: The configuration option dummy is now obsolete it is currently defined in the database configuration for: All Users: All Projects please see the following options: dummy_new_1 dummy_new_2 |
|
dregad (developer) 2011-11-19 20:35 |
Reminder sent to: dhx David, I have implemented this improvement in both 1.2.x and 1.3.x. Would appreciate your feedback, particularly if you see any potential problems and side effects I might have overlooked, with changing the sequence in performing the checks (DB is now done before Config checks otherwise it's not possible to access the mantis_config_table). |
|
belfar (reporter) 2011-11-23 18:39 |
teste |
|
grangeway (developer) 2013-04-05 17:57 |
Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch |
Related Changesets |
|||
|
MantisBT: master-1.2.x 5e9b8342
Timestamp: 2011-10-20 11:16:37 Author: dregad [ Details ] [ Diff ] |
Perform obsolete check against db config also Previously the check for usage of obsolete configuration variables was only performed against global variables (defined in config_inc.php). With this change, a more thorough verification is done, including values with an override in mantis_config_table. Detailed information about where the config option is used is printed with the warning message. Fixes 0013435 |
||
| mod - admin/check.php | [ Diff ] [ File ] | ||
| mod - core/config_api.php | [ Diff ] [ File ] | ||
|
MantisBT: master-1.2.x 991e54be
Timestamp: 2011-11-19 15:07:37 Author: dregad [ Details ] [ Diff ] |
Remove "$g_" prefix from obsolete config warning messages Designating config options using the "$g_" prefix in the warning messages when checking for obsolete configurations does not make sense when they are defined in the database. Removing this previx also makes the messages consistent with the new admin checks interface in 1.3. Affects issue 0013435 |
||
| mod - core/config_api.php | [ Diff ] [ File ] | ||
|
MantisBT: master 2ef79a9d
Timestamp: 2011-11-19 17:29:00 Author: dregad [ Details ] [ Diff ] |
Perform obsolete check against db config also Previously the check for usage of obsolete configuration variables was only performed against global variables (defined in config_inc.php). With this change, a more thorough verification is done, including values with an override in mantis_config_table. Detailed information about where the config option is set (database and/or config_inc.php), for which user(s) and for which project(s), is printed with the warning message. To implement this functionality, it was required to alter the order in which the checks are executed by check/index.php: the DB checks must be performed before the Configuration checks, otherwise there is no DB connectivity to verify values in the config table. Fixes 0013435 |
||
| mod - admin/check/index.php | [ Diff ] [ File ] | ||
| mod - core/config_api.php | [ Diff ] [ File ] | ||
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2011-10-24 03:46 | dregad | New Issue | |
| 2011-10-24 03:53 | dregad | Relationship added | child of 0012885 |
| 2011-10-24 03:54 | dregad | Description Updated | View Revisions |
| 2011-10-24 04:20 | vboctor | Note Added: 0030034 | |
| 2011-10-24 04:23 | vboctor | Note Added: 0030035 | |
| 2011-10-24 04:24 | vboctor | Note Deleted: 0030035 | |
| 2011-10-24 04:48 | dregad | Note Added: 0030036 | |
| 2011-10-25 02:56 | vboctor | Note Added: 0030045 | |
| 2011-11-19 17:08 | dregad | Relationship replaced | related to 0012885 |
| 2011-11-19 17:08 | dregad | Assigned To | => dregad |
| 2011-11-19 17:08 | dregad | Status | new => assigned |
| 2011-11-19 19:17 | dregad | Note Added: 0030253 | |
| 2011-11-19 20:33 | dregad | Status | assigned => resolved |
| 2011-11-19 20:33 | dregad | Resolution | open => fixed |
| 2011-11-19 20:33 | dregad | Fixed in Version | => 1.2.9 |
| 2011-11-19 20:33 | dregad | Target Version | => 1.2.9 |
| 2011-11-19 20:35 | dregad | Note Added: 0030254 | |
| 2011-11-23 18:39 | belfar | Note Added: 0030290 | |
| 2011-12-05 12:32 | dregad | Changeset attached | => MantisBT master 2ef79a9d |
| 2011-12-05 12:32 | dregad | Changeset attached | => MantisBT master-1.2.x 991e54be |
| 2011-12-05 12:32 | dregad | Changeset attached | => MantisBT master-1.2.x 5e9b8342 |
| 2012-03-03 21:45 | vboctor | Status | resolved => closed |
| 2013-04-05 17:57 | grangeway | Status | closed => acknowledged |
| 2013-04-05 17:57 | grangeway | Note Added: 0036335 | |
| 2013-04-05 18:21 | grangeway | Relationship added | related to 0015721 |
| 2013-04-06 03:42 | dregad | Status | acknowledged => closed |
| 2013-04-06 07:23 | grangeway | Status | closed => acknowledged |
| 2013-04-06 09:24 | dregad | Tag Attached: 2.0.x check | |
| 2013-04-06 09:24 | dregad | Status | acknowledged => closed |
| MantisBT 1.2.16dev master-1.2.x-8c2bd07 [^]
Copyright © 2000 - 2013 MantisBT Team
Time: 0.1053 seconds. memory usage: 2,860 KB |