•  
      request #24176 Crash when searching 'Any' on a Permissions on artifact field in a tracker report
    Infos
    #24176
    Thomas Gerbet (tgerbet)
    2021-12-08 14:34
    2021-11-25 08:50
    25717
    Details
    Crash when searching 'Any' on a Permissions on artifact field in a tracker report

    Reproduction steps:

    1. Go to a tracker with a Permissions on artifact field
    2. Add the Permissions on artifact field to the report criteria
    3. Select 'Any' and click on 'Search'

    Trace:

    PHP Fatal error:  Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, string given in /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_PermissionsOnArtifact.php:528
    Stack trace:
    #0 /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field.php(278): Tracker_FormElement_Field_PermissionsOnArtifact->fetchCriteriaValue()
    #1 /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field.php(249): Tracker_FormElement_Field->buildReportCriteria()
    #2 /usr/share/tuleap/plugins/tracker/include/Tracker/Report/Tracker_Report_Criteria.class.php(76): Tracker_FormElement_Field->fetchCriteria()
    #3 /usr/share/tuleap/plugins/tracker/include/Tracker/Report/Tracker_Report.class.php(502): Tracker_Report_Criteria->fetch()
    #4 /usr/share/tuleap/plugins/tracker/include/Tracker/Report/Tracker_Report.class.php(859): Tracker_Report->fetchDisplayQuery()
    [...]
    
    Trackers
    All
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2021-11-25
    Attachments
    Empty
    References

    Follow-ups

    User avatar

    integrated to Tuleap 13.2.99.87


    • Status changed from Under review to Closed
    • Connected artifacts
    • Close date set to 2021-11-25
    User avatar
    Thomas Gerbet (tgerbet)2021-11-25 08:52

    Patch under review: gerrit #24543


    • Summary
      -Crash when searching 'Any' on Permissions on an artifact field in a tracker report 
      +Crash when searching 'Any' on a Permissions on artifact field in a tracker report 
    • Status changed from Under implementation to Under review