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 columns
→ artifact_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"