•  
      request #12969 A tracker report widget linked to a not accessible tracker report crashes the dashboard
    Infos
    #12969
    Thomas Gerbet (tgerbet)
    2019-02-06 17:18
    2019-02-06 10:27
    13847
    Details
    A tracker report widget linked to a not accessible tracker report crashes the dashboard
    If you have a tracker report widget linked to a tracker report that is not accessible (deleted report, non active tracker or project), accessing the dashboard containing the widget generates a crash.

    Issue has been introduced by git #tuleap/stable/7bed32a7137a55a6a858eafab374bc28e9b7a273.

    Trace:
    Fatal error: Uncaught Error: Call to a member function getJavascriptDependencies() on null in /usr/share/tuleap/plugins/tracker/include/Tracker/Widget/Tracker_Widget_Renderer.class.php on line 228
    Error: Call to a member function getJavascriptDependencies() on null in /usr/share/tuleap/plugins/tracker/include/Tracker/Widget/Tracker_Widget_Renderer.class.php on line 228
    Call Stack
    # Time Memory Function Location
    1 0.0000 399368 {main}( ) .../index.php:0
    2 0.0119 2388912 Tuleap\Request\FrontRouter->route( ) .../index.php:46
    3 0.0122 2397128 Tuleap\Request\FrontRouter->routeHandler( ) .../FrontRouter.php:89
    4 0.0270 3461104 Tuleap\Project\Home->process( ) .../FrontRouter.php:222
    5 0.0472 4193192 Tuleap\Dashboard\Project\ProjectDashboardRouter->route( ) .../Home.php:131
    6 0.0472 4193192 Tuleap\Dashboard\Project\ProjectDashboardController->display( ) .../ProjectDashboardRouter.php:83
    7 0.0485 4199344 Tuleap\Dashboard\Project\ProjectDashboardController->getProjectDashboardsPresenter( ) .../ProjectDashboardController.php:127
    8 0.0730 4724848 Tuleap\Dashboard\Widget\DashboardWidgetPresenterBuilder->getWidgetsPresenter( ) .../ProjectDashboardController.php:364
    9 0.0730 4724848 Tuleap\Dashboard\Widget\DashboardWidgetPresenterBuilder->getColumnsPresenterByLine( ) .../DashboardWidgetPresenterBuilder.php:54
    10 0.0730 4724848 Tuleap\Dashboard\Widget\DashboardWidgetPresenterBuilder->getWidgetsPresenterByColumn( ) .../DashboardWidgetPresenterBuilder.php:76
    11 0.0839 5125912 Tuleap\Dashboard\Widget\DashboardWidgetPresenter->__construct( ) .../DashboardWidgetPresenterBuilder.php:102
    12 0.0839 5125912 Tracker_Widget_ProjectRenderer->getJavascriptDependencies( ) .../DashboardWidgetPresenter.php:75
    Trackers
    development
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2019-02-06
    Attachments
    Empty
    References

    Follow-ups