•  
      request #34380 Tracker reports can crash when searching on a bind list without any values
    Infos
    #34380
    Thomas Gerbet (tgerbet)
    2023-10-02 14:46
    2023-10-02 10:55
    35966
    Details
    Tracker reports can crash when searching on a bind list without any values

    Made visible thanks to the changes done in request #32643.

    Trace:

    2023-09-24T23:03:53+02:00 [24654] [error] Caught exception: :
    #0 /usr/share/tuleap/src/vendor/paragonie/easydb/src/EasyStatement.php(165): ParagonIE\EasyDB\EasyStatement->andIn()
    #1 /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_Bind.php(300): ParagonIE\EasyDB\EasyStatement->in()
    #2 /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List.php(132): Tracker_FormElement_Field_List_Bind->getCriteriaFromWhere()
    #3 /usr/share/tuleap/plugins/tracker/include/Tracker/Report/Tracker_Report_Criteria.class.php(71): Tracker_FormElement_Field_List->getCriteriaFromWhere()
    #4 /usr/share/tuleap/plugins/tracker/include/Tracker/Report/Tracker_Report.class.php(438): Tracker_Report_Criteria->getFromWhere()
    #5 /usr/share/tuleap/plugins/tracker/include/Tracker/Report/Tracker_Report.class.php(1990): Tracker_Report->getMatchingIdsFromCriteriaInDb()
    #6 /usr/share/tuleap/plugins/tracker/include/Tracker/Report/Tracker_Report.class.php(377): Tracker_Report->getMatchingIdsFromCriteria()
    #7 /usr/share/tuleap/plugins/tracker/include/Tracker/Report/Tracker_Report.class.php(1003): Tracker_Report->getMatchingIds()
    #8 /usr/share/tuleap/plugins/tracker/include/Tracker/Report/Tracker_Report.class.php(1609): Tracker_Report->display()
    #9 /usr/share/tuleap/plugins/tracker/include/Tracker/Tracker.class.php(1135): Tracker_Report->process()
    #10 /usr/share/tuleap/plugins/tracker/include/Tracker/Tracker.class.php(943): Tracker->displayAReport()
    #11 /usr/share/tuleap/plugins/tracker/include/Tracker/TrackerManager.class.php(148): Tracker->process()
    #12 /usr/share/tuleap/plugins/tracker/include/Tracker/TrackerManager.class.php(166): TrackerManager->processSubElement()
    #13 /usr/share/tuleap/plugins/tracker/include/TrackerPluginDefaultController.php(45): TrackerManager->process()
    #14 /usr/share/tuleap/src/common/Request/FrontRouter.php(252): Tuleap\Tracker\TrackerPluginDefaultController->process()
    #15 /usr/share/tuleap/src/common/Request/FrontRouter.php(110): Tuleap\Request\FrontRouter->routeHandler()
    #16 /usr/share/tuleap/src/www/index.php(50): Tuleap\Request\FrontRouter->route()
    #17 {main}
    
    Trackers
    14.11
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2023-10-02
    Attachments
    Empty
    References

    Follow-ups