vikunja/pkg
kolaente a4aad79f53
fix: TickTick import (#1871)
This change fixes a few issues with the TickTick import:

1. BOM (Byte Order Mark) Handling: Added stripBOM() function to properly handle UTF-8 BOM at the beginning of CSV files
2. Multi-line Status Section: Updated header detection to handle the multi-line status description in real TickTick exports
3. CSV Parser Configuration: Made the CSV parser more lenient with variable field counts and quote handling
4. Test Infrastructure: Added missing logger initialization for tests
5. Field Mapping: Fixed the core issue where CSV fields weren't being mapped to struct fields correctly

The main problem was in the newLineSkipDecoder function where:
- Header detection calculated line skip count on BOM-stripped content
- CSV decoder was also stripping BOM and applying the same skip count
- This caused inconsistent positioning and empty field mapping

Rewrote the decoder to use a scanner-based approach with consistent BOM handling.

Resolves https://github.com/go-vikunja/vikunja/issues/1870
2025-11-25 22:32:39 +00:00
..
caldav fix(caldav): remove METHOD:PUBLISH from caldav exports (#1576) 2025-09-30 18:16:07 +00:00
cmd fix: show error when user list filter is empty (#1372) 2025-09-01 21:08:13 +00:00
config feat: allow setting dark custom logo 2025-11-12 21:07:01 +01:00
cron fix: correct license header references (#882) 2025-06-10 12:18:38 +02:00
db fix(kanban): repeating tasks dates won't update when moved in done bucket (#1638) 2025-11-14 16:57:53 +00:00
events fix(events): only trigger task.updated once when marking task done 2025-11-16 11:01:15 +01:00
files feat: add S3 file storage support (#1688) 2025-11-06 08:37:04 +01:00
health feat: introduce shared health check logic (#1073) 2025-07-02 21:01:41 +00:00
i18n chore(i18n): update translations via Crowdin 2025-11-24 00:59:57 +00:00
initialize feat: add S3 file storage support (#1688) 2025-11-06 08:37:04 +01:00
log feat: move to slog for logging 2025-07-21 18:15:39 +02:00
mail feat: add thread IDs to task notification emails for client-side threading (#1826) 2025-11-15 18:58:32 +01:00
metrics fix: correct license header references (#882) 2025-06-10 12:18:38 +02:00
migration feat: add comment count to tasks (#1771) 2025-11-11 23:00:05 +01:00
models fix: update mention format to use custom HTML element with usernames (#1843) 2025-11-21 15:29:15 +01:00
modules fix: TickTick import (#1871) 2025-11-25 22:32:39 +00:00
notifications fix: HTML entity double-escaping in email notifications (#1829) 2025-11-15 21:37:09 +01:00
plugins feat(plugins): allow plugins to register routes 2025-08-01 17:06:02 +02:00
red fix: correct license header references (#882) 2025-06-10 12:18:38 +02:00
routes feat: allow setting dark custom logo 2025-11-12 21:07:01 +01:00
swagger [skip ci] Updated swagger docs 2025-11-11 22:08:06 +00:00
user fix: properly quote email sender names containing @ symbols (#1768) 2025-11-07 11:44:24 +01:00
utils chore(deps): update golangci-lint to 2.6.0 (#1737) 2025-10-31 17:28:52 +00:00
version fix: correct license header references (#882) 2025-06-10 12:18:38 +02:00
web feat!: rename right to permission (#1277) 2025-08-13 11:05:05 +02:00
webtests fix(kanban): repeating tasks dates won't update when moved in done bucket (#1638) 2025-11-14 16:57:53 +00:00