•  
      request #36836 Fatal error when adding a project dashboard to recent visit history
    Infos
    #36836
    Joris MASSON (jmasson)
    2024-02-26 14:21
    2024-02-19 09:50
    38442
    Details
    Fatal error when adding a project dashboard to recent visit history
    PHP Fatal error:  Uncaught TypeError: Tuleap\Dashboard\Project\ProjectDashboardDao::searchById(): Return value must be of type array, null returned in /usr/share/tuleap/src/common/Dashboard/Project/ProjectDashboardDao.php:56
    Stack trace:
    #0 /usr/share/tuleap/src/common/Dashboard/Project/ProjectDashboardRetriever.php(57): Tuleap\Dashboard\Project\ProjectDashboardDao->searchById()
    #1 /usr/share/tuleap/src/common/Dashboard/Project/ProjectDashboardVisitRetriever.php(65): Tuleap\Dashboard\Project\ProjectDashboardRetriever->getProjectDashboardById()
    #2 /usr/share/tuleap/src/common/Dashboard/Project/ProjectDashboardVisitRetriever.php(51): Tuleap\Dashboard\Project\ProjectDashboardVisitRetriever->addEntry()
    #3 /usr/share/tuleap/src/common/User/History/HistoryRetriever.php(44): Tuleap\Dashboard\Project\ProjectDashboardVisitRetriever->getVisitHistory()
    #4 /usr/share/tuleap/src/common/User/REST/v1/UserResource.php(766): Tuleap\User\History\HistoryRetriever->getHistory()
    

    We suspect that the following calls to GET /api/v1/users/<user_id>/history also fail with error 500, due to the failure to add to the history log

    Other
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2024-02-19
    Attachments
    Empty
    References

    Follow-ups