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

[TASK] Use custom DataHandler command instead of invalid cmdMap #414

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

sbuerk
Copy link
Contributor

@sbuerk sbuerk commented Dec 19, 2024

Until now the DataHandler command map array has been misused
to transport custom localize command options relevant for
translation with DeepL, processed with a hook implementation
and using the original command.

TYPO3 v13 hardens the DataHandler even further, which is a
really good thing, and breaking fingers of developers mess
with the data monster - and loosing [1].

This change switch to a custom DataHandler command and using
the hook to handle the command directly by using the public
DataHandler->localize() method to mitigate the TYPO3 v13
exception thrown by DataHandler->start().

Tests and link creation are aligned to use the new command
name and omit abitary and invalid options.

[1] https://review.typo3.org/c/Packages/TYPO3.CMS/+/83073

Until now the DataHandler command map array has been misused
to transport custom `localize` command options relevant for
translation with DeepL, processed with a hook implementation
and using the original command.

TYPO3 v13 hardens the DataHandler even further, which is a
really good thing, and breaking fingers of developers mess
with the data monster - and loosing [1].

This change switch to a custom DataHandler command and using
the hook to handle the command directly by using the public
`DataHandler->localize()` method to mitigate the TYPO3 v13
exception thrown by `DataHandler->start()`.

Tests and link creation are aligned to use the new command
name and omit abitary and invalid options.

[1] https://review.typo3.org/c/Packages/TYPO3.CMS/+/83073
@sbuerk sbuerk merged commit 0d4bc00 into main Dec 19, 2024
8 checks passed
@sbuerk sbuerk deleted the datahandler branch December 19, 2024 18:30
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.

2 participants