•  
      request #23388 Tracker import fails
    Infos
    #23388
    Aurélien Tisné (atisne)
    2021-09-28 16:16
    2021-09-28 16:05
    24938
    Details
    Tracker import fails

    I want to export a tracker values and reimport the file with changed values. This fails "sometimes".

    Here are steps to (always) reproduce (use attached file):

    • Create a project of type Issue tracking
    • Tracker Issues > Administration > CSV import
      • Select artifact_issue_test.csv on disk
      • Load artifacts
    • Display the column Description in the report All issues of the tracker Issue
    • Tracker Issues > Export > Export all report columnsartifact_issue_test_imp.csv
    • Tracker Issue > Administration > CSV import
      • Select artifact_issue_test_imp.csv on disk
      • Load artifacts ⇒ blank page

    Error in web server logs:

    2021/09/28 13:12:57 [error] 943#943: *986 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /usr/share/tuleap/plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_Text.php:518
    Stack trace:
    #0 /usr/share/tuleap/plugins/tracker/include/Workflow/WorkflowUpdateChecker.php(71): Tracker_FormElement_Field_Text->hasChanges()
    #1 /usr/share/tuleap/plugins/tracker/include/Workflow/WorkflowUpdateChecker.php(50): Tuleap\Tracker\Workflow\WorkflowUpdateChecker->fieldHasChanges()
    #2 /usr/share/tuleap/plugins/tracker/include/Tracker/Artifact/Changeset/NewChangesetFieldsValidator.class.php(62): Tuleap\Tracker\Workflow\WorkflowUpdateChecker->canFieldBeUpdated()
    #3 /usr/share/tuleap/plugins/tracker/include/Tracker/Artifact/Changeset/FieldsValidator.class.php(100): Tracker_Artifact_Changeset_NewChangesetFieldsValidator->validateField()
    #4 /usr/share/tuleap/plugins/tracker/include/Tracker/Artifact/Changeset/FieldsValidator.class.php(65): Tracker_Artifact_Changeset_FieldsValidator->validateOneFi" while reading response header from upstream, client: 10.11.4.1, server: forge.si.c-s.fr, request: "POST /plugins/tracker/?tracker=4&func=admin-csvimport HTTP/2.0", upstream: "fastcgi://127.0.0.1:9000", host: "forge.si.c-s.fr", referrer: "https://forge.si.c-s.fr/plugins/tracker/?tracker=4&func=admin-csvimport"
    
    Trackers
    13.0
    EL7 (CentOS|RHEL)
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Empty
    Declined
    2021-09-28
    Attachments
    References
    Referenced by request #23388

    Follow-ups

    User avatar

    Thanks for the report.

    I'm closing it since it is already fixed thanks to request #23387.


    • Status changed from New to Declined
    • Close date set to 2021-09-28