47744[TASK] Remove duplicate exception numbers
Commit message
Review
-
Code review CR +2
- Christian Kuhn +2
- Daniel Goerz +1
- Christoph Kratz +1
- Nicole Hummel +1
-
Verified V +2
- Christian Kuhn +2
- Daniel Goerz +1
- Christoph Kratz +1
- Nicole Hummel +1
Issues 1
Files 16
- typo3/sysext/backend/Classes/Controller/LoginController.php+1 −1
- typo3/sysext/backend/Tests/Unit/Controller/LoginControllerTest.php+1 −1
- typo3/sysext/beuser/Classes/Controller/BackendUserGroupController.php+1 −1
- typo3/sysext/core/Classes/FormProtection/FrontendFormProtection.php+1 −1
- typo3/sysext/core/Classes/Imaging/IconProvider/SvgIconProvider.php+2 −2
- typo3/sysext/core/Classes/Imaging/IconRegistry.php1+1 −1
- typo3/sysext/core/Classes/Locking/SemaphoreLockStrategy.php+2 −2
- typo3/sysext/core/Classes/Locking/SimpleLockStrategy.php+3 −3
- typo3/sysext/dbal/Classes/Database/AdodbPreparedStatement.php+1 −1
- typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php+1 −1
- typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbQueryParser.php1+1 −1
- typo3/sysext/fluid/Classes/ViewHelpers/Uri/ImageViewHelper.php+1 −1
- typo3/sysext/form/Classes/ViewHelpers/SelectViewHelper.php+3 −3
- typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php2+2 −2
- typo3/sysext/rtehtmlarea/Classes/Form/Element/RichTextElement.php+1 −1
- typo3/sysext/rtehtmlarea/Classes/ImageHandler/EditImageHandler.php+1 −1
Review log 20
-
Christoph Kratz uploaded patch set 1 04/18/16, 11:43
-
Wouter Wolters rebased onto patch set 2 04/18/16, 11:46
-
Wouter Wolters commented on patch set 2 CR -1 04/18/16, 12:11
should be TASKTypoScriptFrontendController.php:946should not be changed. This needs to be the same as the exception that throws the exception. -
Christoph Kratz uploaded patch set 3 04/18/16, 12:17
-
Wouter Wolters commented on patch set 3 04/18/16, 12:42
BackendUserController.php:120leave the same hereDatabaseConnection.php:1621leave the same hereBackendFormProtection.php:104leave the sameBitmapIconProvider.php:46leave the sameIconRegistry.php:2771leave the sameFileLockStrategy.php:61leave the sameFileLockStrategy.php:65same hereArrayUtility.php:146leave the sameDispatcher.php:117leave the sameTypo3DbQueryParser.php:368keep the sameSelectViewHelper.php:162restore this file completelyTypoScriptFrontendController.php:4635leave the same hereAddImageHandler.php:134keep the same -
Christoph Kratz uploaded patch set 4 04/18/16, 13:28
-
Wouter Wolters voted on patch set 4 CR +1 V +1 04/18/16, 13:47
-
Frank Nägler commented on patch set 4 CR -1 04/18/16, 14:18
this is a breaking change, if anyone catch this exceptions and handle it by the given exception code. I am fine with change this in master, but the patch need a breaking rst file and must be marked with [!!!] -
Christian Kuhn commented on patch set 4 CR +1 04/18/16, 18:23
Mmmmh, imho extensions should never rely on specific exception codes. If an extension does it, it either indicates sloppy programming in an extension, or a core bug, if the system follows the following strategy: If core throws a "top-level" php builtin exception like \RuntimeException or \LogicException, then a extension should *never* catch that, since it indicates a hard program logic exception that is raised by a coding bug. OTOH, exceptions that *can* occur during normal code flow and thus should be catchable, those should throw a specific exception like \TYPO3\CMS\MyApiExtension\Exception\FoobarWentWrongException. Those could then be caught by an extension using that API. Again, no code needs to be checked for, here. Thus, I'd say we *can* change exception codes. I'd not do that in 7.6 and only in master, but in general, as outlined, if an extension is forced to catch specific exception codes, it would rather indicate a *different* type of issue that should be solved differently anyway. -
Frank Nägler commented on patch set 4 CR 0 04/18/16, 18:34
after a short discussion, I will not block this patch. remove my voting. -
Nicole Hummel commented on patch set 4 CR -1 04/19/16, 08:59
On it -
Nicole Hummel uploaded patch set 5 04/19/16, 09:29
-
Nicole Hummel uploaded patch set 6 04/19/16, 09:38
-
Nicole Hummel uploaded patch set 7 04/19/16, 09:58
-
Nicole Hummel commented on patch set 7 CR +1 V +1 04/19/16, 10:01
Cleaned up the last push -
Christoph Kratz commented on patch set 7 CR +1 V +1 04/19/16, 10:03
Tested with script from #47765. Everything is clean. -
Daniel Goerz voted on patch set 7 CR +1 V +1 04/19/16, 10:08
-
Christian Kuhn commented on patch set 7 04/19/16, 11:56
on it -
Christian Kuhn voted on patch set 7 CR +2 V +2 04/19/16, 12:03
-
Gerrit merged patch set 7 04/19/16, 12:03