Skip to content

Text-/Comment-Qualifiers corrupt csv import data #11502

@q6276270

Description

@q6276270

Overview

In KeypassXC 2.6.6 importing a CSV file a text qualifiers contained in a field breaks the line. Also the recognition of text qualifiers is greedy within the current csv-entry, i.e. it doesn't check wether it is a textqualifier directly followed by a separator or linebreak to close the field.

Steps to Reproduce

  1. Try import csv
  2. Try importing a file with fields containing 3 textqualifiers among other random strings or ending a csv field early with a closing textqualfier.

Expected Behavior

I'd have thought a textqualifier qualifies the entire csv-field as text. To parse this one would have to check for the opening qualifier directly after a linebreak or previous separator and the closing qualfier directly followed by either a linebreak or a separator.
Alternatively it should be possible to disable text/comment-qualifiers.

Actual Behavior

The early closing of the text-qualifier in a csv-field acts similar to a linebreak.

KeePassXC - 2.6.6
Revision: 9c108b9

Operating System: Linux
Desktop Env: Cinnamon

Metadata

Metadata

Assignees

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions