•  
      request #8464 List value ID are not filtered which could lead to a fatal error
    Infos
    #8464
    Thomas Gerbet (tgerbet)
    2015-10-13 13:36
    2015-10-02 17:16
    8593
    Details
    List value ID are not filtered which could lead to a fatal error
    When you try to access an artifact you get this error:
    Catchable fatal error: Argument 1 passed to Tracker_FormElement_Field_List_Bind_Static::formatChangesetValueObject() must be an instance of Tracker_FormElement_Field_List_Value, array given, called in /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_Bind_Static.class.php on line 114 and defined in /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_Bind_Static.class.php on line 118

    Reproduction:
    - Setup a tracker with a select-box and an artifact link.
    - Add select-box to default report (so that it is displayed in artifact link)
    - Create two artifacts a and b.
    - Make an artifact link in a to b.
    - Set the field select-box in b via the REST API to an incorrect but existing ID. You could check the tracker_field_list_bind_static_value table to find an existing ID.
    - Go to to the artifact a
    Trackers
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Closed
    2015-10-13
    Attachments
    Empty
    References

    Follow-ups