Bug #87979

TYPO3\CMS\Extbase\Service::getImageUri in CLI Mode

Added by Ralf Hübner 9 months ago. Updated 9 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-03-22
Due date:
% Done:

0%

TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi,

i´ve the follwoing problem in TYPO3 v9.5.5 / Composer-Mode, Public-Root is "web":

I use this TYPO3-Service "TYPO3\CMS\Extbase\Service::getImageUri" to retrieve the image path´s, e.g. for a Json-File.

But there is some confusion with the "uriPrefix":

If this is called from the frontend, always fine - the path will be correct: fileadmin/...
but I run this service also in a Command/CLI and it seems the calculated "doc-root" is the composer-dir": */web/*fileadmin/...
This path is wrong against the frontend because the doc-Root itself is "web".

My question is now:
Where ever I have to set a special "TYPO3_SITE_PATH" manually for CLI-Mode or is it a normal behavior or maybe a bug?

Kind regards
Ralf

History

#1 Updated by Bastian Bringenberg 9 months ago

  • Tracker changed from Support to Bug
  • Project changed from forge.typo3.org to TYPO3 Core
  • TYPO3 Version set to 9

Moved to correct Project.

Also available in: Atom PDF