Skip to content
Snippets Groups Projects
Commit df74cd48 authored by Andreas Fernandez's avatar Andreas Fernandez
Browse files

[BUGFIX] Do not return exit codes > 255

If a console command throws an exception that isn't caught, the exit
code evaluates to "0" (aka successful) because the exit codes usually
are the exception timestamp and UNIX doesn't support exit codes > 255.

The issue is now solved by checking the exit code in
`CommandApplication` and setting an upper bound of 255.

Resolves: #101220
Releases: main, 12.4
Change-Id: I722125aa678fe24accb7ebf9732e571ff54abb73
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/79585


Tested-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarJochen <rothjochen@gmail.com>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarJochen <rothjochen@gmail.com>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarSusanne Moog <look@susi.dev>
Reviewed-by: default avatarSusanne Moog <look@susi.dev>
parent e0f1b295
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment