•  
      request #27547 A field with a name containing a `-` character makes reports crash
    Infos
    #27547
    Thomas Gerbet (tgerbet)
    2022-07-07 12:54
    2022-07-07 11:47
    29111
    Details
    A field with a name containing a `-` character makes reports crash

    Reproduction scenario:

    1. Create a field with a name containing a - character
    2. Display this field in a tracker report

    Trace:

    Caught exception: Invalid identifier: Invalid characters supplied.:
    #0 /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field.php(212): ParagonIE\EasyDB\EasyDB->escapeIdentifier()
    #1 /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_Bind_Users.php(426): Tracker_FormElement_Field->getQuerySelectName()
    #2 /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List.php(171): Tracker_FormElement_Field_List_Bind_Users->getQuerySelect()
    #3 /usr/share/tuleap/plugins/tracker/include/Tracker/Report/Tracker_Report_Renderer_Table.class.php(1670): Tracker_FormElement_Field_List->getQuerySelect()
    #4 /usr/share/tuleap/plugins/tracker/include/Tracker/Report/Tracker_Report_Renderer_Table.class.php(413): Tracker_Report_Renderer_Table->buildOrderedQuery()
    #5 /usr/share/tuleap/plugins/tracker/include/Tracker/Report/Tracker_Report.class.php(949): Tracker_Report_Renderer_Table->fetch()
    #6 /usr/share/tuleap/plugins/tracker/include/Tracker/Report/Tracker_Report.class.php(1552): Tracker_Report->display()
    #7 /usr/share/tuleap/plugins/tracker/include/Tracker/Tracker.class.php(1108): Tracker_Report->process()
    #8 /usr/share/tuleap/plugins/tracker/include/Tracker/Tracker.class.php(920): Tracker->displayAReport()
    #9 /usr/share/tuleap/plugins/tracker/include/Tracker/TrackerManager.class.php(146): Tracker->process()
    #10 /usr/share/tuleap/plugins/tracker/include/Tracker/TrackerManager.class.php(164): TrackerManager->processSubElement()
    #11 /usr/share/tuleap/plugins/tracker/include/TrackerPluginDefaultController.php(45): TrackerManager->process()
    #12 /usr/share/tuleap/src/common/Request/FrontRouter.php(252): Tuleap\Tracker\TrackerPluginDefaultController->process()
    #13 /usr/share/tuleap/src/common/Request/FrontRouter.php(110): Tuleap\Request\FrontRouter->routeHandler()
    #14 /usr/share/tuleap/src/www/index.php(50): Tuleap\Request\FrontRouter->route()
    #15 {main}
    
    Trackers
    13.10
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2022-07-07
    Attachments
    Empty
    References

    Follow-ups

    User avatar

    Integrated into Tuleap 13.10.99.101.


    • Status changed from Under review to Closed
    • Connected artifacts
    • Close date set to 2022-07-07