Project

General

Profile

Actions

Bug #89739

closed

Omit hostname in site auto-generation called via CLI

Added by Oliver Hader about 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2019-11-22
Due date:
% Done:

100%

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

Description

Invoking DataHandler in CLI (e.g. when importing data-sets) fails due to flaws in CreateSiteConfiguration which uses $_SERVER as fallback even when it does not contain any web-related information. Thus, hostname and schema prefix is omitted when being called in CLI context.

InvalidArgumentException : The parsedUri "http:///Users/olly/Development/typo3/master/vendor/phpunit/phpunit/autogenerated-1000" appears to be malformed
 /Users/olly/Development/typo3/master/typo3/sysext/core/Classes/Http/Uri.php:123
 /Users/olly/Development/typo3/master/typo3/sysext/core/Classes/Http/Uri.php:109
 /Users/olly/Development/typo3/master/typo3/sysext/core/Classes/Site/Entity/Site.php:103
 /Users/olly/Development/typo3/master/typo3/sysext/core/Classes/Utility/GeneralUtility.php:3461
 /Users/olly/Development/typo3/master/typo3/sysext/core/Classes/Configuration/SiteConfiguration.php:132
 /Users/olly/Development/typo3/master/typo3/sysext/core/Classes/Configuration/SiteConfiguration.php:83
 /Users/olly/Development/typo3/master/typo3/sysext/core/Classes/Site/SiteFinder.php:55
 /Users/olly/Development/typo3/master/typo3/sysext/core/Classes/Utility/GeneralUtility.php:3461
 /Users/olly/Development/typo3/master/typo3/sysext/core/Classes/DataHandling/SlugHelper.php:306
 /Users/olly/Development/typo3/master/typo3/sysext/core/Classes/DataHandling/SlugHelper.php:359
 /Users/olly/Development/typo3/master/typo3/sysext/core/Classes/DataHandling/DataHandler.php:1877
 /Users/olly/Development/typo3/master/typo3/sysext/core/Classes/DataHandling/DataHandler.php:1616
 /Users/olly/Development/typo3/master/typo3/sysext/core/Classes/DataHandling/DataHandler.php:1572
 /Users/olly/Development/typo3/master/typo3/sysext/core/Classes/DataHandling/DataHandler.php:1433
 /Users/olly/Development/typo3/master/typo3/sysext/core/Classes/DataHandling/DataHandler.php:1065

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #89142: Create sites when a page in generated on root levelClosed2019-09-11

Actions
Actions #1

Updated by Oliver Hader about 5 years ago

  • Related to Feature #89142: Create sites when a page in generated on root level added
Actions #2

Updated by Gerrit Code Review about 5 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/62370

Actions #3

Updated by Oliver Hader about 5 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #4

Updated by Benni Mack almost 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF