•  
      request #43338 Crash when trying to access a sprint planning with an incorrect planning_id GET parameter
    Infos
    #43338
    Thomas Gerbet (tgerbet)
    2025-06-04 17:24
    2025-06-04 16:41
    45031
    Details
    Crash when trying to access a sprint planning with an incorrect planning_id GET parameter

    Reproduction scenario:

    1. Open a sprint backlog of a Backlog plugin
    2. Change the the planning_id value to z

    Trace:

    PHP Fatal error:  Uncaught TypeError: Tuleap\AgileDashboard\Planning\NotFoundException::__construct(): Argument #1 ($planning_id) must be of type int, string given, called in /usr/share/tuleap/plugins/agiledashboard/include/Planning/MilestoneFactory.php on line 211 and defined in /usr/share/tuleap/plugins/agiledashboard/include/AgileDashboard/Planning/NotFoundException.php:27
    Stack trace:
    #0 /usr/share/tuleap/plugins/agiledashboard/include/Planning/MilestoneFactory.php(211): Tuleap\AgileDashboard\Planning\NotFoundException->__construct()
    #1 /usr/share/tuleap/plugins/agiledashboard/include/Planning/MilestoneController.php(198): Planning_MilestoneFactory->getBareMilestone()
    #2 /usr/share/tuleap/plugins/agiledashboard/include/Planning/MilestoneController.php(88): Planning_MilestoneController->generateBareMilestone()
    #3 /usr/share/tuleap/plugins/agiledashboard/include/AgileDashboardRouter.php(366): Planning_MilestoneController->show()
    [...]
    
    Agile Dashboard
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2025-06-04
    Attachments
    Empty
    References

    Follow-ups