Project

General

Profile

Actions

Bug #100488

open

Broken Response creation in core

Added by Christian Kuhn about 1 year ago. Updated about 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2023-04-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

sysext/frontend/Classes/Middleware/StaticRouteResolver.php
return new Response('Invalid route', 404, ['Content-Type' => 'text/plain']);

This triggers a warning in Stream __construct() fopen().

For a basic fix, see #100487, headers might be a topic at other places, too.

There are some further places in core that should be checked. Grep for 'new Response' and check factory usages as well.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #100487: Fix response creation in testsClosed2023-04-05

Actions
Actions #1

Updated by Christian Kuhn about 1 year ago

  • Related to Task #100487: Fix response creation in tests added
Actions #2

Updated by Christian Kuhn about 1 year ago

  • Description updated (diff)
Actions #3

Updated by Benni Mack about 1 year ago

cannot reproduce this

Actions

Also available in: Atom PDF