netresearch / t3x-rte_ckeditor_image

Image support in CKEditor for the TYPO3 ecosystem
GNU Affero General Public License v3.0
56 stars 65 forks source link

Updated processed images are not used #232

Closed hannesbochmann closed 1 year ago

hannesbochmann commented 1 year ago

Bug description We have RTE fields which contain images with a src like "fileadmin/processed/9/f/csm_image_b87be79882.png". If the image got updated meanwhile and for example the modification date changed, the newly processed file will have a new path as the checksum changes. But this new path is not used if the src attribute doesn't start with a slash.

Steps to reproduce To reproduce the problem:

Expected behavior ImageRenderingController should return the newly processed file.

Environment

Documentation Have you checked the readme/documentation?

The problem is caused by the last changes from #197 when the leading slash is added if only a path is given and the file object has another public URL than the src attribute. In this case $imageSource variable needs to be updated with the URL of the newly processed file or the initial src attribute is used. I will provide a PR.

Gitsko commented 1 year ago

The problem should be fixed with version 11.0.14 #233.