- 🇺🇸United States smustgrave
This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request → as a guide.
As this is a bug it will need a test case to show the issue.
Also an issue summary update for steps to reproduce, proposed solution, remaining tasks, etc. Should follow the default template.
- 🇫🇷France ericdsd France
Hi i experience the same issue on core 9.5.9 and it generates large error messages in session table which can generate exceding max_allowed_packet error when querying session table on common mysql config.
- last update
over 1 year ago Composer error. Unable to continue. - last update
over 1 year ago 29,326 pass, 2 fail 53:27 51:26 Running- Status changed to Needs review
over 1 year ago 1:23am 21 July 2023 The last submitted patch, 10: 3195583-test-only.patch, failed testing. View results →
- Status changed to RTBC
over 1 year ago 9:29pm 21 July 2023 - 🇺🇸United States smustgrave
test seems to show the issue pretty clearly.
Followed the steps from the issue summary and definitely see the issue
Patch #11 does solve the issue.
- last update
over 1 year ago 29,450 pass - last update
over 1 year ago 29,454 pass - last update
over 1 year ago 29,454 pass - last update
over 1 year ago 29,456 pass - last update
over 1 year ago 29,456 pass - last update
over 1 year ago 29,458 pass - last update
over 1 year ago 29,458 pass - last update
over 1 year ago 29,459 pass - last update
over 1 year ago 29,460 pass - last update
over 1 year ago 29,460 pass - last update
over 1 year ago 29,466 pass - last update
over 1 year ago 29,466 pass - last update
over 1 year ago 29,466 pass - last update
over 1 year ago 29,470 pass - last update
over 1 year ago 29,470 pass - Status changed to Needs work
over 1 year ago 6:49am 22 August 2023 - 🇳🇿New Zealand quietone
I am doing triage on the core RTBC queue → .
The issue summary and proposed resolution are clear and complete. Thank you, that really helps the reviewers and committers. I read the comments this still needs a code review. Setting to Needs review.
I tested this on Drupal 11.x, using the steps in the issue summary and reproduced that problem.
I then took a look at the patch.+++ b/core/lib/Drupal/Component/Utility/Html.php @@ -471,8 +471,11 @@ public static function transformRootRelativeUrlsToAbsolute($html, $scheme_and_ho + if (isset($image_candidate_string[0]) && isset($image_candidate_string[1])) {
Since this is really just checking for an empty string this could be much simpler.
$image_candidate_strings = array_filter(array_map('trim', $image_candidate_strings)); foreach ($image_candidate_strings as $key => $image_candidate_string) { if ($image_candidate_string[0] === '/' && $image_candidate_string[1] !== '/') { $image_candidate_strings[$key] = $scheme_and_host . $image_candidate_string; }
Now, setting to Needs work.
- 🇳🇿New Zealand quietone
This also needs a title to say what is being fixed here.
- Status changed to Needs review
over 1 year ago 7:14am 22 August 2023 - last update
over 1 year ago 30,057 pass - 🇮🇳India sourabhjain
Rerolled the patch against 11.x and updated it as suggested in #15.
- Status changed to Needs work
over 1 year ago 8:11pm 30 August 2023 - Status changed to Needs review
over 1 year ago 11:39pm 30 August 2023 - 🇺🇸United States smokris Athens, Ohio, USA
Updated issue title, as requested.
- Status changed to RTBC
over 1 year ago 11:58pm 30 August 2023 - last update
over 1 year ago 30,101 pass - last update
over 1 year ago 30,136 pass - last update
over 1 year ago 30,136 pass - last update
over 1 year ago 30,137 pass - last update
over 1 year ago 30,147 pass - last update
over 1 year ago 30,147 pass - last update
over 1 year ago 30,149 pass - last update
over 1 year ago 30,158 pass - last update
over 1 year ago 30,162 pass - last update
over 1 year ago 30,164 pass - last update
over 1 year ago 30,169 pass - last update
over 1 year ago 30,169 pass - last update
over 1 year ago 30,206 pass - last update
over 1 year ago 30,364 pass - last update
over 1 year ago 30,366 pass - last update
over 1 year ago 30,361 pass - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - Status changed to Needs work
over 1 year ago 8:30pm 9 November 2023 - Status changed to Needs review
over 1 year ago 2:00am 10 November 2023 - Open on Drupal.org →Environment: PHP 8.1 & MariaDB 10.3.22
14:24 13:41 Queued - Status changed to Needs work
over 1 year ago 5:03am 10 November 2023 - Assigned to sourabhjain
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 7:03am 10 November 2023 - 🇮🇳India sourabhjain
Updated the patch as per latest 11.x version.
Please review. - last update
over 1 year ago Patch Failed to Apply - Status changed to RTBC
over 1 year ago 1:12pm 10 November 2023 - last update
over 1 year ago 30,395 pass, 1 fail - Status changed to Needs review
over 1 year ago 1:44pm 10 November 2023 - 🇺🇸United States smokris Athens, Ohio, USA
Thanks. #26 has an unnecessary variable assignment which wasn't present in #17. I've attached a modified patch that removes that line (and an interdiff).
- last update
over 1 year ago 30,395 pass, 1 fail - Status changed to RTBC
over 1 year ago 1:48pm 10 November 2023 - 🇺🇸United States smokris Athens, Ohio, USA
(Unintentionally changed issue status. Sorry for the noise.)
- 🇺🇸United States smustgrave
lets see what the tests say but that line I believe was new to the existing code. But if not needed then good cleanup.
- Assigned to smokris
- Status changed to Needs work
over 1 year ago 3:11pm 10 November 2023 - 🇺🇸United States smokris Athens, Ohio, USA
Both patches failed. Investigating…
- Issue was unassigned.
- Status changed to RTBC
over 1 year ago 3:22pm 10 November 2023 - 🇺🇸United States smokris Athens, Ohio, USA
Revised test data since the transformation now removes empty attribute values.
- last update
over 1 year ago 30,511 pass, 2 fail - last update
over 1 year ago 30,395 pass, 2 fail - last update
over 1 year ago 30,517 pass - Status changed to Needs work
over 1 year ago 11:44pm 10 November 2023 The Needs Review Queue Bot → tested this issue.
While you are making the above changes, we recommend that you convert this patch to a merge request → . Merge requests are preferred over patches. Be sure to hide the old patch files as well. (Converting an issue to a merge request without other contributions to the issue will not receive credit.)
- Status changed to RTBC
over 1 year ago 11:48pm 10 November 2023 - Status changed to Needs work
over 1 year ago 11:58pm 10 November 2023 - @smokris opened merge request.
- Status changed to RTBC
over 1 year ago 1:00am 12 November 2023 - 🇺🇸United States smokris Athens, Ohio, USA
- 🇺🇸United States xjm
I triggered the test-only job for this on GitLab CI. Results:
There was 1 error: 1) Drupal\Tests\Component\Utility\HtmlTest::testTransformRootRelativeUrlsToAbsolute with data set "weepwas0, empty srcset" ('<weepwas0 srcset>empty test</weepwas0>', 'http://example.com', false) Uninitialized string offset 0 /builds/issue/drupal-3195583/core/lib/Drupal/Component/Utility/Html.php:490 /builds/issue/drupal-3195583/core/tests/Drupal/Tests/Component/Utility/HtmlTest.php:345 /builds/issue/drupal-3195583/vendor/phpunit/phpunit/src/Framework/TestResult.php:728 /builds/issue/drupal-3195583/vendor/phpunit/phpunit/src/Framework/TestSuite.php:684 /builds/issue/drupal-3195583/vendor/phpunit/phpunit/src/Framework/TestSuite.php:684 /builds/issue/drupal-3195583/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:651 /builds/issue/drupal-3195583/vendor/phpunit/phpunit/src/TextUI/Command.php:144 /builds/issue/drupal-3195583/vendor/phpunit/phpunit/src/TextUI/Command.php:97
- Status changed to Needs work
over 1 year ago 5:31pm 12 November 2023 - 🇺🇸United States xjm
Committed to 11.x and 10.2.x, thanks!
This is also eligible for backport to 10.1.x as a non-disruptive bugfix; however, it does not cherry-pick cleanly (nor does #31 apply to 10.1.x). Marking "Needs work" for a 10.1.x backport of the final version of the patch to be created. Thanks!
- Status changed to Downport
over 1 year ago 5:32pm 12 November 2023 - @smokris opened merge request.
- Status changed to RTBC
over 1 year ago 12:43am 13 November 2023 - 🇺🇸United States smokris Athens, Ohio, USA
Thanks, @xjm. Here's an MR for 10.1.x: https://git.drupalcode.org/project/drupal/-/merge_requests/5362
- Status changed to Fixed
over 1 year ago 8:35pm 13 November 2023 Automatically closed - issue fixed for 2 weeks with no activity.