Skip to content

Contact sync abort on single vcard error #1351

Closed
@timedin-de

Description

@timedin-de

Problem scope

  • I'm sure that this is a DAVx⁵ problem.

App version

  • I'm using the latest available DAVx⁵ version.

Android version and device/firmware type

Android 15 (Google Pixel 6a)

Steps to reproduce

  1. Apply the linked patch to your synced nextcloud: nextcloud/server#51478
  2. Create an invalid contact in Android (e.g., with an invalid email).
    1.5. Add a valid new contact
  3. Start a sync with DAVx⁵.
  4. Observe that the sync process gets canceled due to the invalid contact. The valid contact will not get synced

Actual result

Currently, when a put/post request fails, the entire sync process is aborted, and changes to other contacts (different http-requests) are not synced.

Expected result

I would expect DAVx⁵ to skip the invalid contact and continue syncing the remaining valid contacts instead of aborting the entire sync process.

Maybe: Extract the error message and show it directly in the notification

Further info

  • Although in this case its about nextcloud, the same errror would happen with other carddav servers that do server-side validation.
  • Related issue: nextcloud/server#51478

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingneed infoFurther information needed to continue

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions