Page MenuHomePhabricator

CSV files with line breaks in fields are not parsed correctly
Closed, ResolvedPublicBUG REPORT

Description

CSV files with line breaks in fields are not parsed correctly, due to using preg_split() to split the file into lines.

See https://www.mediawiki.org/wiki/Extension_talk:External_Data#New_3.2_version_causing_issues_when_fetching_complex_values_from_other_wiki

Event Timeline

alex-mashin changed the task status from Open to In Progress.Jan 9 2023, 2:02 PM
alex-mashin claimed this task.
alex-mashin triaged this task as Unbreak Now! priority.

Change 877181 had a related patch set uploaded (by Alex Mashin; author: mashin):

[mediawiki/extensions/ExternalData@master] Handle quoted fields with newlines in CSV correctly

https://gerrit.wikimedia.org/r/877181

Change 877181 merged by jenkins-bot:

[mediawiki/extensions/ExternalData@master] Handle quoted fields with newlines in CSV correctly

https://gerrit.wikimedia.org/r/877181