Project

General

Profile

Actions

Defect #44051

open

CSV import fails with `Unquoted fields do not allow new line <"\n"> in line 1` on latest trunk on Windows

Added by Yasu Saku about 15 hours ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Importers
Target version:
-
Resolution:
Affected version:

Description

I faced a problem to import a CSV file into Redmine on Windows.

Environment

  • Redmine version 6.1.2.devel ( revision r24649 )
  • Ruby version 3.2.9-p265 (2025-07-24) [x64-mingw-ucrt]
  • Rails version 8.1.3
  • Environment development
  • Database adapter SQLite

Observed behavior

Importing a UTF-8 BOM CSV with CRLF line endings fails with the error below:

⚠️The file is not a CSV file or does not match the settings below (Unquoted fields do not allow new line <"\n"> in line 1.)

Expected behavior

The CSV should import successfully.

Comparison

The same CSV file imports successfully on 6.1.0.stable under the same Ruby/OS (Windows) environment.
Also, the latest trunk works correctly on Debian (Docker) with the same CSV file.
The issue seems to occur only on Windows.
This looks related to CSV row separator or line ending handling.
I suspect a regression around revision r24428.

Minimal reproducible CSV sample


Files

issues_csv_import_error.png (105 KB) issues_csv_import_error.png Yasu Saku, 2026-05-13 13:57
min-repro-crlf-bom.csv (47 Bytes) min-repro-crlf-bom.csv Yasu Saku, 2026-05-13 14:10

No data to display

Actions

Also available in: Atom PDF