Skip to content
Snippets Groups Projects
Verified Commit f6ea2f76 authored by Dave Long's avatar Dave Long
Browse files

Issue #3377310 by catch, joelpittet, mark_fullmer, smustgrave, TrevorBradley,...

Issue #3377310 by catch, joelpittet, mark_fullmer, smustgrave, TrevorBradley, bkosborne, MWaters, cilefen, capellic: 400 exceptions result from requests for old asset paths which are missing the "theme" query string, possibly from cached pages

(cherry picked from commit 96695551)
parent b71596d0
Branches
Tags
20 merge requests!8376Drupal views: adding more granularity to the ‘use ajax’ functionality,!8300Issue #3443586 View area displays even when parent view has no results.,!7567Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7565Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7509Change label "Block description" to "Block type",!7344Issue #3292350 by O'Briat, KlemenDEV, hswong3i, smustgrave, quietone: Update...,!6922Issue #3412959 by quietone, smustgrave, longwave: Fix 12 'un' words,!6848Issue #3417553 by longwave: Remove withConsecutive() in CacheCollectorTest,!6720Revert "Issue #3358581 by pfrenssen, _tarik_, a.dmitriiev, smustgrave:...,!6560Update ClaroPreRender.php, confirming classes provided are in array format,!6528Issue #3414261 by catch: Add authenticated user umami performance tests,!6501Issue #3263668 by omkar-pd, Wim Leers, hooroomoo: Re-enable inline form errors...,!6354Draft: Issue #3380392 by phma: Updating language weight from the overview reverts label if translated,!6324Issue #3416723 by Ludo.R: Provide a "node type" views default argument,!6119Issue #3405704 by Spokje, longwave: symfony/psr-http-message-bridge major version bump,!5950Issue #3403653 by alexpott, longwave: Incorporate improvements to how contrib runs PHPStan to core,!5858Issue #3401971 by fjgarlin: Test-only job shouldn't require constant rebases...,!5716Draft: Issue #3401102 by Spokje, longwave, smustgrave: Nightwatch artifacts on GitLab not retained,!5674Transaction autocommit during shutdown relies on unreliable object destruction order,!5644Issue #3395563 by nireneko, marvil07, lauriii, borisson_, smustgrave, Wim...
Pipeline #50243 failed
Pipeline: drupal

#50248

    Pipeline: drupal

    #50247

      Pipeline: drupal

      #50246

        +1
        ......@@ -88,7 +88,7 @@ public function onClientError(ExceptionEvent $event) {
        'status_code' => $exception->getStatusCode(),
        ];
        $this->logger->get('client error')
        ->log($error['severity_level'], Error::DEFAULT_ERROR_MESSAGE, $error);
        ->warning(Error::DEFAULT_ERROR_MESSAGE, $error);
        }
        /**
        ......
        ......@@ -3,6 +3,7 @@
        namespace Drupal\KernelTests\Core\EventSubscriber;
        use Drupal\Core\DependencyInjection\ContainerBuilder;
        use Drupal\Core\Logger\RfcLogLevel;
        use Drupal\KernelTests\KernelTestBase;
        use Symfony\Component\ErrorHandler\BufferingLogger;
        use Symfony\Component\HttpFoundation\Request;
        ......@@ -47,6 +48,18 @@ public function testExceptionLogging() {
        503 => 'php',
        ];
        $level_map = [
        400 => RfcLogLevel::WARNING,
        401 => RfcLogLevel::WARNING,
        403 => RfcLogLevel::WARNING,
        404 => RfcLogLevel::WARNING,
        405 => RfcLogLevel::WARNING,
        408 => RfcLogLevel::WARNING,
        501 => RfcLogLevel::ERROR,
        502 => RfcLogLevel::ERROR,
        503 => RfcLogLevel::ERROR,
        ];
        // Ensure that noting is logged.
        $this->assertEmpty($this->container->get($this->testLogServiceName)->cleanLogs());
        ......@@ -60,11 +73,12 @@ public function testExceptionLogging() {
        ini_set('error_log', $error_log);
        $expected_channels = array_values($channel_map);
        $expected_levels = array_values($level_map);
        $logs = $this->container->get($this->testLogServiceName)->cleanLogs();
        foreach ($expected_channels as $key => $expected_channel) {
        $log_message = $logs[$key][2]['channel'];
        $this->assertEquals($expected_channel, $log_message);
        $this->assertEquals($expected_channel, $logs[$key][2]['channel']);
        $this->assertEquals($expected_levels[$key], $logs[$key][0]);
        }
        }
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment