Actions
Bug #89739
closedOmit hostname in site auto-generation called via CLI
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
Updated by Oliver Hader about 5 years ago
- Related to Feature #89142: Create sites when a page in generated on root level added
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
Updated by Oliver Hader about 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 10023893aa94f93ec562a54af9e49bdb61919bc9.
Actions