extension_builder icon indicating copy to clipboard operation
extension_builder copied to clipboard

🐛 [BUG] image viewHelper is used by default with originalResource.publicUrl

Open DavidBruchmann opened this issue 4 years ago • 0 comments

Describe the bug in the templates for images or other resources the url-path is used.
This works well with ASCII characters but not with UTF-8 if special characters like Umlaus are used.
Currently the produced code in templates looks like this:

<f:image src="{publication.image.originalResource.publicUrl}" width="200"/>

The path is then url-encoded and produces something like this: /fileadmin/t%C3%A4st.jpeg, and that's the reason that in the filesystem the file is not found.

To Reproduce Steps to reproduce the behavior:

  1. use a model with resources like images.
  2. reference a resource with Umlauts like Ä, Ö, Ü
  3. Call the page in FE
  4. See error

Expected behavior A rendered image, based on a path that can be resolved in any case, even when Umlauts or other special characters are included.

TYPO3 Version 11.5.4

Extension Builder Version: TER version 11.0.1

Additional Context Images can be created from PDF and perhaps other resources too, therefore I mentioned resources more general than just images only.

DavidBruchmann avatar Dec 30 '21 13:12 DavidBruchmann