-
Notifications
You must be signed in to change notification settings - Fork 99
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
Moving task between lists back and forth causes error #1685
Comments
Thanks a lot for this complete report. I can reproduce the behavior. The problem is the newly introduced trash bin for events and tasks in Nextcloud 22. By default, tasks are not completely removed from the database anymore when getting deleted in the Tasks app (or any other client), but just get marked as deleted (so they are not shown anymore besides within the trash bin). When we now move tasks between lists, a leftover remains in the old list (a task marked as deleted). So moving the task back fails, because there already is one (just marked as deleted). Hence, the move fails. I am not entirely sure what would be the best solution for this. There are probably multiple options:
I currently favor option 1. as a quick fix we can do here in the Tasks app. But I think we should consider option 3. as well. Other clients will have the same problem with moving tasks. If they don't support the trash bin collection or are especially adjusted for NC server 22, moving tasks will be broken for them. @ChristophWurst and @tcitworld for input, since you implemented the trash bin in server. |
@ChristophWurst @tcitworld Moving events in Calendar between different calendars is currently also broken in the Calendar app v.2.3.0. |
The server response is <?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>Sabre\DAV\Exception\BadRequest</s:exception>
<s:message>Deleted calendar object with uid already exists in this calendar collection.</s:message>
</d:error> |
Since this will very likely require server-side fixes, I remove this from the next milestone. |
Thanks for the update @raimund-schluessler. Is there any issue submitted to the nextcloud server project where we can track this? |
@aharish No, I did not create a server ticket yet, because I wasn't sure if it is server issue. But since it's clear now, I guess we should create one (or just transfer this issue here to server). @ChristophWurst @tcitworld What do you think? |
I'd strongly vote for this option, for the reasons already mentioned above. I created a corresponding server issue: nextcloud/server#30096 |
A fix for moving tasks between lists (back and forth) is here: nextcloud/server#30120 |
I think this issue is a duplicate of nextcloud/calendar#3325 and is now fixed with nextcloud/server#30120. |
This issue was fixed. |
Steps to reproduce
Expected behaviour
Task should be moved successfully from A to B and back to A.
Actual behaviour
Movement from A to B works, but trying to move back to A fails with a generic error message ("Es ist ein Fehler aufgetreten.").
This behavior appeared after the update from Nextcloud 21 to 22 with Tasks version 0.13.6 (it worked before the update). It did not change with Tasks version 0.14.0-alpha.1.
The Nextcloud log contains hints (see below).
Server configuration
Operating system: Linux 5.4.0-77-generic #86-Ubuntu SMP Thu Jun 17 02:35:03 UTC 2021 x86_64
Web server: Apache/2.4.38 (Debian) (apache2handler)
Database: mysql 10.5.11
PHP version: 7.4.21
Modules loaded: Core, date, libxml, openssl, pcre, sqlite3, zlib, ctype, curl, dom, fileinfo, filter, ftp, hash, iconv, json, mbstring, SPL, PDO, session, posix, Reflection, standard, SimpleXML, pdo_sqlite, Phar, tokenizer, xml, xmlreader, xmlwriter, mysqlnd, apache2handler, apcu, bcmath, exif, gd, gmp, imagick, intl, ldap, memcached, pcntl, pdo_mysql, pdo_pgsql, redis, sodium, zip, Zend OPcache
Nextcloud version: 22.0.0 - 22.0.0.11
Tasks version: 0.14.0-alpha.1
Updated from an older Nextcloud or fresh install: updated from 21
List of activated apps:
Enabled:
Disabled:
Nextcloud configuration:
Are you using external storage, if yes which one: no
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0
Operating system: Linux Mint 20.1
CalDAV-clients: Mozilla Thunderbird, DAVx5
Logs
Nextcloud log (data/nextcloud.log)
The text was updated successfully, but these errors were encountered: