Issue Bug Closed

#99195DeferredAction may break it's callback if no promise is returned

Andreas Kienast 11/25/22, 13:52 updated 12/06/22, 21:43

Description

Discovered by acceptance tests:

1) RecyclerModuleCest: Delete and recover records
 Test  Acceptance/Application/Recycler/RecyclerModuleCest.php:deleteAndRecoverRecords
 Step  See element ".module-docheader [name=BackendUserModuleMenu]"
 Fail  Found following JavaScript errors in the browser console:
13:26:33.607 SEVERE - http://web:8000/typo3temp/var/tests/acceptance/typo3/sysext/backend/Resources/Public/JavaScript/action-button/deferred-action.js?bust=0f9537c0e5e6da036d0e659b29ec9dd3fafa6e79 12:415 Uncaught TypeError: Cannot read properties of undefined (reading 'finally')

The issue is that the code relies on having a Promise returned which is not always given.

Reviews 1