- Issue created by @mcdruid
- last update
almost 2 years ago run-tests.sh exception - last update
almost 2 years ago 2,149 pass - last update
almost 2 years ago 2,148 pass, 1 fail - Status changed to Needs work
almost 2 years ago 4:57pm 5 May 2023 The last submitted patch, 4: 3358515-4.patch, failed testing. View results โ
- last update
almost 2 years ago 2,110 pass - last update
almost 2 years ago run-tests.sh exception - last update
almost 2 years ago 2,145 pass - last update
almost 2 years ago 2,149 pass - last update
almost 2 years ago 2,110 pass - Status changed to Needs review
almost 2 years ago 6:02pm 5 May 2023 - ๐ฌ๐งUnited Kingdom mcdruid ๐ฌ๐ง๐ช๐บ
Testbot seems to be a bit flaky today for some reason; have had to rerun a couple of tests.
- ๐ธ๐ฐSlovakia poker10
Thanks! Not sure which of these two issues would go first, but we should probably extend/update the basic test of phpinfo page ( ๐ Add test(s) for SA-CORE-2023-004 [D7] Fixed ) and check also the behavior of that page in case the variable
sa_core_2023_004_phpinfo_flags
is changed - for example when the variable is reverted to the state before SA-CORE-2013-004 (e.g. empty string), if the removed section will be back.It can be done here or in the mentioned issue (it depends on the order how we would like to proceed).
- ๐ฌ๐งUnited Kingdom mcdruid ๐ฌ๐ง๐ช๐บ
Yes I agree; let's commit the basic test first then we can add testing of the new variable here.
- ๐ฎ๐ณIndia gurbakshish
I have tried to configure the PHP info by this way under modules/system/system.admin.inc:
function system_php() {
$phpinfo_flags = variable_get('sa_core_2023_004_phpinfo_flags');
$phpinfo_flags = empty($phpinfo_flags) ? INFO_ALL : $phpinfo_flags;
phpinfo($phpinfo_flags);
drupal_exit();
}In our default.settings.php we can add some comments like:
/**
* Configuration for phpinfo() admin status report.
*
* Drupal's admin UI includes a report at admin/reports/status/php which shows
* the output of phpinfo(). The full output can contain sensitive information
* so by default Drupal removes some sections.
*
* This behaviour can be configured by setting this variable to a different
* value corresponding to the flags parameter of phpinfo().
*
* If you need to expose more information in the report - for example to debug a
* problem - consider doing so temporarily.
*
* INFO_GENERAL The configuration line, php.ini location, build date, Web Server, System and more.
* INFO_CREDITS PHP Credits. See also phpcredits().
* INFO_CONFIGURATION Current Local and Master values for PHP directives. See also ini_get().
* INFO_MODULES Loaded modules and their respective settings. See also get_loaded_extensions().
* INFO_ENVIRONMENT Environment Variable information that's also available in $_ENV.
* INFO_VARIABLES Shows all predefined variables from EGPCS (Environment, GET, POST, Cookie, Server).
* INFO_LICENSE PHP License information. See also the ยป license FAQ.
* INFO_ALL Shows all of the above.
*
* By default INFO_ALL is enabled.
* You can use above parameters to configure the phpinfo for example:
* (INFO_ENVIRONMENT | INFO_MODULES)
* For More information check the link below.
* @see https://www.php.net/manual/function.phpinfo.php
*/
#$conf['sa_core_2023_004_phpinfo_flags'] = (INFO_ALL); - ๐ฌ๐งUnited Kingdom mcdruid ๐ฌ๐ง๐ช๐บ
Thanks for the suggestion, but I think it's better to include the link to the PHP documentation rather than reproduce a lot of that information in the comments here.
default.settings.php is already a massive wall of text, plus the documentation may change over time.
Also better to stick to the very well established pattern of providing a default in the call to
variable_get()
. - last update
over 1 year ago 2,150 pass - ๐ฌ๐งUnited Kingdom mcdruid ๐ฌ๐ง๐ช๐บ
Now that the test has been committed we can add to it to verify that the new variable works.
- last update
over 1 year ago 2,150 pass - last update
over 1 year ago 2,111 pass - last update
over 1 year ago 2,146 pass - last update
over 1 year ago 2,150 pass - last update
over 1 year ago 2,150 pass - last update
over 1 year ago 2,111 pass - last update
over 1 year ago 2,150 pass - last update
over 1 year ago 2,150 pass - last update
over 1 year ago run-tests.sh exception - last update
over 1 year ago 2,150 pass - Status changed to RTBC
over 1 year ago 8:30pm 8 May 2023 - ๐ธ๐ฐSlovakia poker10
I think this looks good, thanks! Tests are green and I have also tested this manually via settings.php change and it worked correctly. Moving to RTBC. Not sure if we need to wait for the D10 issue though.
- last update
over 1 year ago 2,150 pass - last update
over 1 year ago 2,151 pass - ๐ธ๐ฐSlovakia poker10
We should add a change record before commit. D10 draft CR is here: https://www.drupal.org/node/3360166 โ
- last update
over 1 year ago 2,151 pass - last update
over 1 year ago 2,151 pass - last update
over 1 year ago 2,151 pass - last update
over 1 year ago 2,151 pass - last update
over 1 year ago 2,151 pass - ๐ธ๐ฐSlovakia poker10
Re:
Not sure if we need to wait for the D10 issue though.
We have decided to wait just before the D7 release and then will see if we commit this or wait for the D10 issue to get first.
- last update
over 1 year ago 2,151 pass - ๐ฌ๐งUnited Kingdom mcdruid ๐ฌ๐ง๐ช๐บ
The D10/11 issue has been committed, so we're good to get this in before the next D7 release.
I'll create a D7 CR.
-
poker10 โ
committed b32f7ee6 on 7.x
Issue #3358515 by mcdruid: Make phpinfo on the admin status report...
-
poker10 โ
committed b32f7ee6 on 7.x
- Status changed to Fixed
over 1 year ago 5:56pm 26 May 2023 - ๐ธ๐ฐSlovakia poker10
Committed, thanks!
Added also release notes snippet (inspired by D10).
- ๐จ๐ฆCanada joseph.olstad
@poker10, I noticed a few fails in the tests, maybe just re-trigger them to fix that.
PDOException: SQLSTATE[42S02]: Base table or view not found: 1051 Unknown table 'jenkins_drupal_d7_262033.simpletest656510cache_page' in /var/www/html/includes/database/database.inc:2284
- ๐ธ๐ฐSlovakia poker10
Thanks, will check that. There was last push few minutes ago, so tests are running again. But these exceptions seems like the classic random failures, which we unfortunatelly have in D7 tests from time to time (
Table XXX already exists
,Base table or view not found
). Automatically closed - issue fixed for 2 weeks with no activity.