•  
      request #11215 Fatal error when a user goes to a dashboard containing a Kanban widget he cannot see
    Infos
    #11215
    Thomas Gerbet (tgerbet)
    2018-04-03 18:53
    2018-03-01 08:58
    11548
    Details
    Fatal error when a user goes to a dashboard containing a Kanban widget he cannot see
    Reproduction case:
    1. In a public project add a kanban widget in the one of the project's dashboard
    2. Restrict the permission of the tracker used by the kanban so an anonymous user can not see it
    3. Try to access the dashboard with the kanban widget

    This issue has been reported by @wicope on the community chat.

    Trace:
    PHP message: PHP Fatal error: Uncaught exception 'AgileDashboard_KanbanCannotAccessException' in /usr/share/tuleap/plugins/agiledashboard/include/AgileDashboard/KanbanFactory.class.php:65
    Stack trace:
    #0 /usr/share/tuleap/plugins/agiledashboard/include/AgileDashboard/Widget/Kanban.php(114): AgileDashboard_KanbanFactory->getKanban(Object(PFUser), '14')
    #1 /usr/share/tuleap/src/common/Dashboard/Widget/DashboardWidgetPresenterBuilder.php(97): Tuleap\AgileDashboard\Widget\Kanban->loadContent('2')
    #2 /usr/share/tuleap/src/common/Dashboard/Widget/DashboardWidgetPresenterBuilder.php(76): Tuleap\Dashboard\Widget\DashboardWidgetPresenterBuilder->getWidgetsPresenterByColumn(Object(Tuleap\Dashboard\Project\ProjectDashboard), Object(Tuleap\Dashboard\Widget\OwnerInfo), Object(Tuleap\Dashboard\Widget\DashboardWidgetColumn), false)
    #3 /usr/share/tuleap/src/common/Dashboard/Widget/DashboardWidgetPresenterBuilder.php(54): Tuleap\Dashboard\Widget\DashboardWidgetPresenterBuilder->getColumnsPresenterByLine(Object(Tuleap\Das" while reading response header from upstream, client: 172.18.0.1, server: tuleap-web.tuleap-aio-dev.docker, request: "GET /projects/project1/?dashboard_id=56 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "tuleap-web.tuleap-aio-dev.docker"
    Dashboard & Widgets
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2018-04-03
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2018-04-03 18:53
    Integrated into Tuleap 9.19.99.10.

    • Status changed from Under review to Closed
    • Connected artifacts
    • Close date set to 2018-04-03