•  
      request #43348 Do not crash when creating or updating widgets with incorrect parameters
    Infos
    #43348
    Thomas Gerbet (tgerbet)
    2025-06-10 15:52
    2025-06-09 16:43
    45030
    Details
    Do not crash when creating or updating widgets with incorrect parameters

    Reproduction scenario:

    1. Go to GET /widgets/?action=edit-widget

    Trace:

     Fatal error: Uncaught TypeError: Tuleap\Dashboard\Widget\PreferencesController::checkCSRF(): Argument #1 ($row) must be of type array, bool given, called in /usr/share/tuleap/src/common/Dashboard/Widget/PreferencesController.php on line 77 and defined in /usr/share/tuleap/src/common/Dashboard/Widget/PreferencesController.php:141
    Stack trace:
    #0 /usr/share/tuleap/src/common/Dashboard/Widget/PreferencesController.php(77): Tuleap\Dashboard\Widget\PreferencesController->checkCSRF()
    #1 /usr/share/tuleap/src/common/Dashboard/Widget/Router.php(69): Tuleap\Dashboard\Widget\PreferencesController->update()
    #2 /usr/share/tuleap/src/www/widgets/index.php(59): Tuleap\Dashboard\Widget\Router->route()
    #3 {main} thrown in /usr/share/tuleap/src/common/Dashboard/Widget/PreferencesController.php on line 141
    
    Dashboard & Widgets
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2025-06-10
    Attachments
    Empty
    References

    Follow-ups