- last update
about 1 year ago Custom Commands Failed - π¬π§United Kingdom alexpott πͺπΊπ
@RandalV any chance you can review the MR I just posted and RTBC it - it would be great to fix this problem rather than maintain the patch on this issue.
- Status changed to Needs review
5 months ago 9:30am 19 July 2024 - Status changed to RTBC
5 months ago 7:05pm 20 July 2024 - π§πͺBelgium RandalV
@alexpott
* MR applies cleanly to 10.3.x
* Done some tests and the results are as expected:
* Same hash salt -> same session cookie name
* Different hash salt -> different session cookie name
* Can stay logged in across all subsites of a multisite on the same hostname with different hash salt
* Giving all subsites the same hash salt has the expected behavior of being logged out when visiting a different subsiteSeems ready to me! Thanks for the MR.
- π³πΏNew Zealand quietone
I read the IS, comments, MR and the CR. I didn't find any unanswered questions and I have nothing to add to the MR or CR.
Leaving at RTBC - Status changed to Fixed
4 months ago 9:08am 22 August 2024 - π·πΈSerbia finnsky
I'm not sure but seems this is reason of error using php server
https://git.drupalcode.org/project/drupal/-/blob/11.x/.ht.router.php?ref...
Before this fix i had simple way to install Drupal:
1. clone Drupal
2. composer install
3. php -S localhost:8888 .ht.router.phpAnd i had install form on :8888 right after.
Now i have:
Install form with error:
RuntimeException: Missing $settings['hash_salt'] in settings.php. in Drupal\Core\Site\Settings::getHashSalt() (line 172 of core/lib/Drupal/Core/Site/Settings.php). Drupal\Core\Site\Settings::getHashSalt() (Line: 119) Drupal\Core\Session\SessionConfiguration->getUnprefixedName(Object) (Line: 90) Drupal\Core\Session\SessionConfiguration->getName(Object) (Line: 51) Drupal\Core\Session\SessionConfiguration->hasSession(Object) (Line: 40) Drupal\Core\PageCache\RequestPolicy\NoSessionOpen->check(Object) (Line: 37) Drupal\Core\PageCache\ChainRequestPolicy->check(Object) (Line: 787) system_form_alter(Array, Object, 'install_select_language_form') (Line: 552) Drupal\Core\Extension\ModuleHandler->alter('form', Array, Object, 'install_select_language_form') (Line: 826) Drupal\Core\Form\FormBuilder->prepareForm('install_select_language_form', Array, Object) (Line: 280) Drupal\Core\Form\FormBuilder->buildForm('Drupal\Core\Installer\Form\SelectLanguageForm', Object) (Line: 972) install_get_form('Drupal\Core\Installer\Form\SelectLanguageForm', Array) (Line: 1387) install_select_language(Array) (Line: 697) install_run_task(Array, Array) (Line: 574) install_run_tasks(Array, NULL) (Line: 122) install_drupal(Object) (Line: 48)
Please check.
- π·πΈSerbia finnsky
Created follow issue.
https://www.drupal.org/project/drupal/issues/3470040 π Impossible to install Drupal with php server Active - Status changed to Active
4 months ago 10:14pm 24 August 2024 - π¬π§United Kingdom alexpott πͺπΊπ
Going to set this to closed again - we can fix this in π Impossible to install Drupal with php server Active - it's an extremely obscure bug caused by no longer needed security fixes.
- π¬π§United Kingdom alexpott πͺπΊπ
Oh actually this prevents all interactive installs! Not just php webserver installs. Reverting.
-
alexpott β
committed 2fc79469 on 11.x
Revert "Issue #2983612 by daniel.bosen, randalv, swatichouhan012,...
-
alexpott β
committed 2fc79469 on 11.x
- π¬π§United Kingdom alexpott πͺπΊπ
This is happening because code in system_form_alter() is accessing a request policy and therefore the hash salt prior to Drupal even being installed. The work around is to remove the code because as the issues summary of #2421503: SA-CORE-2014-002 forward port only checks internal cache β states
Wait for #2502785: Remove support for $form_state->setCached() for GET requests β : Remove support for $form_state->setCached() for GET requests. If/when that issue is done, this problem goes away since there'd be no $form_state persistence during any cacheable request.
So we can remove system_form_alter.
- Status changed to Needs review
4 months ago 10:13am 27 August 2024 - π¬π§United Kingdom alexpott πͺπΊπ
Pushed an MR that fixes the install issue. We have to test manually because the way the session name is created is different for a site under test.