Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] fix misuse of 11LTS BE processing middleware URLs #194

Merged
merged 1 commit into from
Nov 2, 2022

Conversation

jpmschuler
Copy link
Contributor

this fixes #187

The situation is as follows: starting with 11LTS in the backend processed images get not a /fileaadmin/_processed/ "resulting image" style url but a new /typo3/image/process?token "middleware" style url. However that is only available for logged in BE users. Thus this can be saved to RTE and displayed there, however will break the frontend output.

Now I tried to fix what is saved in the backend/db, but came to the conclusion that this shouldn't be the aim, as there are probably reasons for the backend using that new URL.

Thus my approach here is to accept this new URL, accept the "bug" that this new URL gets converted to an absolute URL and rather tackle the problem while generating frontend output, where the generation is skipped formerly, because it sees "external URL". Now an if just checks for the string '/typo3/image/process?token' and starts reprocessing.

this fixes netresearch#187

The situation is as follows: starting with 11LTS in the backend processed images get not a `/fileaadmin/_processed/` "resulting image" style url but a new `/typo3/image/process?token` "middleware" style url. However that is only available for logged in BE users. Thus this can be saved to RTE and displayed there, however will break the frontend output.

Now I tried to fix what is saved in the backend/db, but came to the conclusion that this shouldn't be the aim, as there are probably reasons for the backend using that new URL.

Thus my approach here is to accept this new URL, accept the "bug" that this new URL gets converted to an absolute URL and rather tackle the problem while generating frontend output, where the generation is skipped formerly, because it sees "external URL". Now an if just checks for the string `'/typo3/image/process?token'` and starts reprocessing.
@jpmschuler
Copy link
Contributor Author

(force-push because commit still had a var_dump)

@CybotTM CybotTM merged commit b111bca into netresearch:master Nov 2, 2022
@CybotTM
Copy link
Member

CybotTM commented Nov 2, 2022

Thank you @jpmschuler for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

images are not processed
2 participants