Skip to content

feat(synology): add support for custom fields in C2 Password CSV#244

Open
AhmedOsman101 wants to merge 1 commit into
roddhjav:masterfrom
AhmedOsman101:master
Open

feat(synology): add support for custom fields in C2 Password CSV#244
AhmedOsman101 wants to merge 1 commit into
roddhjav:masterfrom
AhmedOsman101:master

Conversation

@AhmedOsman101

Copy link
Copy Markdown

Synology C2 Password stores custom fields (registration fields, autofill hints, free-text notes) as JSON in the Others column.
The base CSV parser discards these, causing custom fields to be silently skipped during import with --all.

  • add parse() override for SynologyC2CSV class
  • extract Text and AutofillWeb custom entries from Others JSON
  • raise FormatError on malformed JSON
  • fix self.data type annotation (Dict -> List[Dict])
  • add test data (c2password.csv) with custom fields and edge cases
  • add FormatError coverage (c2password-malformed.csv)
  • add test_importers_synology and test_import_synology_malformed_json

Backward compatible: entries with no Others value or an empty one produce the same output as before.
Existing synology.csv / main.yml tests pass unchanged.

- parse JSON data from the "Others" column
- extract custom text and autofill fields
- add unit tests for valid and malformed CSV files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant