•  
      request #38313 CSV import fail with blank doc and error 500 when emtpy line
    Infos
    #38313
    Guilhem Bonnefille (CS) (gbonnefille)
    2024-06-18 10:21
    2024-06-18 10:21
    39936
    Details
    CSV import fail with blank doc and error 500 when emtpy line

    When trying to import a CSV with an empty last line, the resulting page is blank.

    On the serveur side, nginx report an error 500.

    On FPM :

    [18-Jun-2024 10:13:49] WARNING: [pool tuleap] child 32522 said into stderr: "NOTICE: PHP message: PHP Fatal error:  Uncaught TypeError: UserManager::getUserByUserName(): Argument #1 ($user_name) must be of type string, null given, called in /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_SubmittedBy.php on line 429 and defined in /usr/share/tuleap/src/common/User/UserManager.class.php:192"
    [18-Jun-2024 10:13:49] WARNING: [pool tuleap] child 32522 said into stderr: "Stack trace:"
    [18-Jun-2024 10:13:49] WARNING: [pool tuleap] child 32522 said into stderr: "#0 /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_SubmittedBy.php(429): UserManager->getUserByUserName()"
    [18-Jun-2024 10:13:49] WARNING: [pool tuleap] child 32522 said into stderr: "#1 /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field.php(1407): Tracker_FormElement_Field_SubmittedBy->getFieldData()"
    [18-Jun-2024 10:13:49] WARNING: [pool tuleap] child 32522 said into stderr: "#2 /usr/share/tuleap/plugins/tracker/include/Tracker/Tracker.class.php(2558): Tracker_FormElement_Field->getFieldDataFromCSVValue()"
    [18-Jun-2024 10:13:49] WARNING: [pool tuleap] child 32522 said into stderr: "#3 /usr/share/tuleap/plugins/tracker/include/Tracker/Tracker.class.php(2466): Tracker->hasBlockingError()"
    [18-Jun-2024 10:13:49] WARNING: [pool tuleap] child 32522 said into stderr: "#4 /usr/share/tuleap/plugins/tracker/include/Tracker/Tracker.class.php(2281): Tracker->isValidCSV()"
    [18-Jun-2024 10:13:49] WARNING: [pool tuleap] child 32522 said into stderr: "#5 /usr/shar..."
    
    Trackers
    15.9
    EL7 (CentOS|RHEL)
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    New
    Empty
    Attachments
    Empty
    References
    References list is empty