Skip to content

[BUG] caldav radicale compatibility / caldav priority issues #142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
grasegger opened this issue Jan 16, 2025 · 3 comments
Closed

[BUG] caldav radicale compatibility / caldav priority issues #142

grasegger opened this issue Jan 16, 2025 · 3 comments

Comments

@grasegger
Copy link

grasegger commented Jan 16, 2025

Describe the bug

Setting up the tool with a radicale server results in errors about inserting items.

To Reproduce

  • Setup radicale (development setup is enough)
  • Setup syncall to use radicale
  • Add task to taskwarrior and execute syncall

Jan 16 16:12:27 1337F00D uvx[2765511]: 16:12:27.35 | ERROR | [caldav Insert an item using the given side helper] Operation failed.

Expected Behavior

Tasks are successfully added to radicale

📸 Screenshots

Versions

OS Version (cat /etc/*-release; uname -a)

Fedora release 41 (Forty One)
NAME="Fedora Linux"
VERSION="41 (Forty One)"
RELEASE_TYPE=stable
ID=fedora
VERSION_ID=41
VERSION_CODENAME=""
PLATFORM_ID="platform:f41"
PRETTY_NAME="Fedora Linux 41 (Forty One)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:41"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f41/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=41
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=41
SUPPORT_END=2025-12-15
Linux 1337F00D 6.12.6-200.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 19 21:06:34 UTC 2024 x86_64 GNU/Linux

Python version (python --version; python3 --version)

3.13.1

--version of your executable

tw_caldav_sync, version 1.8.8

Additional context

Edit
Just cloned the project and ran it with python 3.8.20 - same error.
Edit2
Looks like it has something to do with priority of an item being emtpy, not sure.
Edit3
Yes, def. something with priority, if I set it to 5 in the add_item function it works. I have not used priority, maybe thats the problem.
Edit4
Hm, now sync has stopped working, not with an error, just no output at all.

Edit5
Ok, yeah, once I add a priority to all my tasks sync works. The script makes the assumption that every user has priorities set up and that those priorities are not empty.

Edit6
Additional bug? Items are duplicated on the server, then duplicated locally, because fetching does not care about priorities at all and inserts them without any. Each sync the items are duplicated.

Since priorities are not a default in taskwarrior I would recommend ignoring it or using X-SYNCALL-PRIORITY instead of the priority field. I do not feel confident enough in the codebase to provide a PR at this point.

@grasegger grasegger added the bug label Jan 16, 2025
@grasegger grasegger changed the title [BUG] caldav radicale compatibility [BUG] caldav radicale compatibility / caldav priority issues Jan 16, 2025
@cameronj86
Copy link

I use radicale to sync my Kontact/Korganizer tasks across devices. My main goal was just to import into tw and I was able to achieve that, so thanks! I was planning on managing future tasks across both tw and the apps, but that doesn't look possible ATM. I will double down on learning tw for the foreseeable future and here is some additional datapoints in case it helps future troubleshooting:

  1. My existing (and subsequent) tw edits/additions are not being recognized/pushed to radicale.
  2. None of my priorities were passed through/transformed
  3. Combined w/ my existing tw tasks, I also have exactly 150 tasks now which seems a little too convenient. I haven't been keeping track of the # of tasks I have, so it's possible that I randomly hit a milestone number, but my uneducated guess is that there is truncation due to task size potentially at play.

sysinfo:
task warrior version: 3.3
syncall version: 1.8.6
Install type: pipx

PRETTY_NAME="Debian GNU/Linux trixie/sid"
NAME="Debian GNU/Linux"
VERSION_CODENAME=trixie
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Linux optiplex 6.12.10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.10-1 (2025-01-18) x86_64 GNU/Linux

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Apr 23, 2025
Copy link

This issue was closed because it has been stalled for 5 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants