Review 12.4 Merged

84955[BUGFIX] Make BackendGroupsExplicitAllowDeny wizard indicate errors

Stefan Bürk CR +2 V +2 Easy +3 −1 updated 06/27/24, 21:09

Commit message

The migration wizard BackendGroupsExplicitAllowDeny
('Migrate backend groups "explicit_allowdeny" field to
simplified format') returns Symfony formatted error messages
for specific single rows.

Before this patch, it was still reported as a successful
migration, and the success message is formatted with
"everything is great" green background, so that errors
may not receive attention.

This patch changes the wizard to return a failure state.
This will then return the messages formatted as errors.

Since the wizard migrates all rows (even the faulty ones),
the wizard can then be re-executed to be marked as "done".

This is not ideal, but because of the way Symfony
output streams cannot reveal if they contain an error
when the stream is retrieved, there is little other choice.

Otherwise the Wizard API would need to receive a breaking
API change to allow to carry additional meta information
about "warnings" rather than just errors, which is
beyond scope for current development state.

Review

  • Code review CR +2 Done
    • Stefan Bürk +2
  • Verified V +2 Done
    • Stefan Bürk +2
    • core-ci +1 CI

Issues 2

Files 1

Review log 34

  1. Stefan Bürk commented on patch set 1 06/27/24, 20:59

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 06/27/24, 21:09 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/60499

  3. Stefan Bürk voted on patch set 1 CR +2 V +2 06/27/24, 21:09

  4. Stefan Bürk merged patch set 2 06/27/24, 21:09