Project

General

Profile

Actions

Bug #106768

open

PageInformationFactory throws PageInformationCreationFailedException

Added by Philipp Parzer 24 days ago. Updated 24 days ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
Link Handling & Redirect Handling
Target version:
-
Start date:
2025-05-26
Due date:
% Done:

0%

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

Description

Prerequisite: sys_redirect from redirect.example.org to example.org
URL: redirect.example.org/?id=2500%2C%2C1007330%2C

throws PageInformationCreationFailedException in TYPO3\CMS\Frontend\Page\PageInformationFactory in line 516
id parameter is used although security.frontend.allowInsecureSiteResolutionByQueryParameters is not set
id parameter is used although keep_query_parameters in redirect was not set

Actions #1

Updated by Oliver Hader 24 days ago ยท Edited

  • Status changed from New to Needs Feedback

The reason at that code location is PageAccessFailureReasons::ACCESS_DENIED_HOST_PAGE_MISMATCH

Can you please share the complete (redacted) redirection response (like in my example below)?

curl -Ik 'https://ip14.anyhost.it/?id=82,,123,'

HTTP/1.1 307 Temporary Redirect
Date: Mon, 26 May 2025 19:41:34 GMT
Server: Apache/2.4.63 (Unix) OpenSSL/3.5.0 mod_fcgid/2.3.9
X-Powered-By: PHP/8.2.24
X-Redirect-By: TYPO3 Redirect 3
location: https://ip14.anyhost.at
Content-Type: text/html; charset=UTF-8

The security.frontend.allowInsecureSiteResolutionByQueryParameters feature currently only applies to site-resolving.

Actions #2

Updated by Garvin Hicking 24 days ago

  • Category set to Link Handling & Redirect Handling
Actions #3

Updated by Philipp Parzer 24 days ago

There is no redirection because the Exception is thrown:

HTTP/2 500 
server: nginx/1.27.4
date: Tue, 27 May 2025 05:24:32 GMT
content-type: text/html; charset=UTF-8
x-powered-by: PHP/8.3.17
x-xss-protection: 1; mode=block
x-ua-compatible: IE=edge
x-content-type-options: nosniff
strict-transport-security: max-age=31536000

what I'm trying to do is: move alls URLs from old.example.org/* to example.org/ via sys_redirect (and remove all params)
temporary fix is, to redirect via htaccess

Actions

Also available in: Atom PDF