•  
      request #24180 A tracker report with list field with invalid selected value can prevent the proper creation of a project
    Infos
    #24180
    Thomas Gerbet (tgerbet)
    2021-11-26 14:19
    2021-11-25 16:44
    25726
    Details
    A tracker report with list field with invalid selected value can prevent the proper creation of a project

    Reproduction steps:

    1. Create an empty tracker
    2. Make sure the tracker will be instantiated when creating a new project
    3. Add a static select box to this tracker with some value
    4. Create a tracker report, add the list field as one of the criteria and select one the value
    5. Save the report
    6. Go back to the field administration and remove the value you selected in the report from the field
    7. Create a new project from your current project

    Project creation trace:

    Warning: Undefined array key 3686 in /usr/share/tuleap/plugins/tracker/include/Tracker/Report/dao/ReportCriteriaDao.php on line 102
    Fatal error: Uncaught TypeError: Tuleap\Tracker\Report\dao\ReportCriteriaDao::getValueFromRow(): Return value must be of type string, null returned in /usr/share/tuleap/plugins/tracker/include/Tracker/Report/dao/ReportCriteriaDao.php on line 102
    

    If the document generation plugin is enabled it will also break when accessing the report:

    Tracker_FormElement_InvalidFieldValueException: in /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_Bind_Static.php on line 22
    

    The generated tracker structure is also invalid because it references values that does not exist.

    Trackers
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2021-11-26
    Attachments
    Empty
    References

    Follow-ups

    User avatar

    integrated to Tuleap 13.2.99.96


    • Status changed from Under review to Closed
    • Connected artifacts
    • Close date set to 2021-11-26