Bug #101219
openImage cropping for twitter image results to a reload of the page settings
0%
Description
When trying to crop the image for the twitter cards it sometimes results into a reload of the page.
Steps to reproduce:
Open pagesettings
Remove the existing image for the twitter card.
Add a new image for the twitter card -> don't save
Hit the button "Open editor" for the twitter image.
Result:
The page reloads and the image was not saved.
Expectation:
The cropping should be possible without the image reload.
Notes:
This doesn't happen always, only sometimes. In my case I already had an image for facebook selected. When you try to edit the image directly it seems to work. Only if I delete the previous image and then add a new one without saving, I get this error.
PHP 8.1 (didn't test it with 8.2)
TYPO3 12.4.2
ddev, composer, completely fresh installation with only a starting page.
Error in the console:
VM159:1 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'nonce-y84-tmyrXpWYdbGA6LjkxT-CvYKnoVYx6lL4K311-KDy6tRmI86YHQ' 'report-sample'". Either the 'unsafe-inline' keyword, a hash ('sha256-FDyPg8CqqIpPAfGVKx1YeKduyLs0ghNYWII21wL+7HM='), or a nonce ('nonce-...') is required to enable inline execution.
Updated by Jasmina Ließmann 10 months ago
- Related to Bug #101199: ImageManipulation added
Updated by Oliver Hader 8 months ago
- Status changed from New to Needs Feedback
Could not reproduce. In case this happens again, please try to find out the script that actually caused this CSP violation - either by using the console or by checking the most recent report in the CSP backend module ("Sample" might contain a hint to the script).
Updated by Riccardo De Contardi 5 months ago
I am currently not able to reproduce this one on 12.4.9 (ddev, composer, fresh installation)