- Issue created by @poker10
- Merge request !8025Draft: Test the SessionHttpsTestCase->testEmptySessionId() test → (Open) created by poker10
- Merge request !8029Issue #3446569: [D7 PHP 8.3] Fix SessionHttpsTestCase->testEmptySessionId() failure → (Open) created by poker10
- last update
7 months ago 2,179 pass - last update
7 months ago run-tests.sh exception - last update
7 months ago 2,174 pass, 1 fail - Status changed to Needs review
7 months ago 10:22pm 10 May 2024 - 🇸🇰Slovakia poker10
I tried to reproduce this failure on multiple enviroments: local (linux, windows), our demo server, .. and was unable to reproduce it anywhere, so was unable to debug it. I think it could probably be related to some PHP enviroment config.
While trying to debug the
SessionHttpsTestCase->testEmptySessionId()
test, I found out, that the test seems not working at all.I have created a test branch with a test MR: https://git.drupalcode.org/project/drupal/-/merge_requests/8025 . I have reverted the SA-CORE-2014-006 security fix in
session.inc
there. Then I expected that theSessionHttpsTestCase->testEmptySessionId()
test would start failing. And it does not, it is still green, see: https://git.drupalcode.org/project/drupal/-/pipelines/170033Therefore I think the test is currently not working and it is questionable, if it was working correctly in the past.
----------
So I think that the one solution is to remove the non-working test (not created a MR yet). Other possible solution is to use something similar as it is used in
SessionTestCase::testEmptySessionID()
- add a$this->curlClose();
just before thedrupalGet()
call. This should at least fix the failure on PHP 8.3.I have created a MR 8029 for the second possible solution here: https://git.drupalcode.org/project/drupal/-/merge_requests/8029
All current tests seems to be green with this change: https://git.drupalcode.org/project/drupal/-/pipelines/170155 . Also the PHP 8.3 test is without this failure (only the HTML parsing failure from
TextSummaryTestCase()
is still present after applying the fix from here), see: https://www.drupal.org/pift-ci-job/2893116 → .For illustration, if we combine fix from this issue and fix from the other one, the 8.3 testing is green: https://git.drupalcode.org/project/drupal/-/pipelines/170105 (see the META issue).
Moving to Needs review.
- Status changed to RTBC
2 months ago 2:53pm 17 September 2024