Contacts 2.0.1 - can't change group on shared contacts


#1

hi,

I am using nc 12.0.3 and updated contacts to 2.0.1 and wanted to change the group of a contact from another user.
There I got an error and the logs I got this:

Sabre\DAV\Exception\UnsupportedMediaType: Validation error in vCard: N MUST NOT appear more than once in a VCARD component

/var/www/owncloud/3rdparty/sabre/dav/lib/CardDAV/Plugin.php - line 294: Sabre\CardDAV\Plugin->validateVCard(‘BEGIN VCARD\r\nVE…’, false)
[internal function] Sabre\CardDAV\Plugin->beforeWriteContent(‘addressbooks/us…’, Object(Sabre\CardDAV\Card), ‘BEGIN VCARD\r\nVE…’, false)
/var/www/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1128: Sabre\Event\EventEmitter->emit(‘beforeWriteCont…’, Array)
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 513: Sabre\DAV\Server->updateFile(‘addressbooks/us…’, ‘BEGIN VCARD\r\nVE…’, NULL)
[internal function] Sabre\DAV\CorePlugin->httpPut(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/owncloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479: Sabre\Event\EventEmitter->emit(‘method PUT’, Array)
/var/www/owncloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/owncloud/apps/dav/lib/Server.php - line 258: Sabre\DAV\Server->exec()
/var/www/owncloud/apps/dav/appinfo/v2/remote.php - line 33: OCA\DAV\Server->exec()
/var/www/owncloud/remote.php - line 162: require_once(’/var/www/ownclo…’)
{main}

as far as I remember that worked in the 1.5.x version.


#2

Hi!
It still should work to move one contact from one group to another.
The problem here is:

Sabre\DAV\Exception\UnsupportedMediaType: Validation error in vCard: N MUST NOT appear more than once in a VCARD component

The specific contact you try to move seems to contain the N property twice, which is forbidden by the DAV backend in nextcloud/server.
Would you mind opening an issue on Github? We should validate VCards before moving them!


#3

hi, here:


#4

Thanks, let’s continue there.


#5