Bug 385575 - exporting contact to vcard 4 then vcard contains data not about contact
Summary: exporting contact to vcard 4 then vcard contains data not about contact
Status: REPORTED
Alias: None
Product: kaddressbook
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-11 08:10 UTC by Philippe ROUBACH
Modified: 2019-07-15 07:10 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe ROUBACH 2017-10-11 08:10:40 UTC
opensuse 42.3

if i export a contact from my google address book to a vcard 4
then
this vcard contains
for example

UID:http://www.google.com/m8/feeds/contacts/episteme.promeneur%40gmail.com/
 base/42e403fc0cadb044
X-GCALENDAR-groupMembershipInfo:http://www.google.com/m8/feeds/groups/epist
 eme.promeneur%40gmail.com/base/6

it is not data about the contact.
this reveals data i don't want to share.
Comment 1 Philippe ROUBACH 2019-02-18 17:05:04 UTC
kontact 5.10.2

if you uncheck "other field" 
then 
X-GCALENDAR-groupMembershipInfo: is no more exported

but
UID is exported
Comment 2 Philippe ROUBACH 2019-02-18 17:15:41 UTC
kontact 5.10.2

if in kmail editor we join several vcards. the tool to select vcards is not able to select what fields to export then we encounter the same problem :

UID
X-GCALENDAR-groupMembershipInfo

are exported
Comment 3 Laurent Montel 2019-07-02 11:34:12 UTC
Git commit 6568e06636147ab8c7de6c661870afe9fe2987d8 by Laurent Montel.
Committed on 02/07/2019 at 11:33.
Pushed by mlaurent into branch 'Applications/19.04'.

Don't export UID it's not a necessary contact info

M  +1    -1    kaddressbook/importexportplugins/vcards/vcardimportexportplugininterface.cpp

https://commits.kde.org/kdepim-addons/6568e06636147ab8c7de6c661870afe9fe2987d8
Comment 4 Laurent Montel 2019-07-02 11:36:42 UTC
(In reply to Philippe ROUBACH from comment #2)
> kontact 5.10.2
> 
> if in kmail editor we join several vcards. the tool to select vcards is not
> able to select what fields to export then we encounter the same problem :
> 
> UID
> X-GCALENDAR-groupMembershipInfo
> 
> are exported

Yep indeed I will look at if I can fix it. (I don't know how for the moment)
Comment 5 Philippe ROUBACH 2019-07-14 10:50:29 UTC
In comment #2 I also signaled there is another non info about contact:

for example

X-GCALENDAR-groupMembershipInfo:http://www.google.com/m8/feeds/groups/epist
 eme.promeneur%40gmail.com/base/5835b2ea0c54d438\,http://www.google.com/m8/
 feeds/groups/episteme.promeneur%40gmail.com/base/6\,http://www.google.com/
 m8/feeds/groups/episteme.promeneur%40gmail.com/base/2c2c0176895df900

with 19.04.3 UID problem is fixed but not X-GCALENDAR-groupMembershipInfo problem
Comment 6 Laurent Montel 2019-07-15 06:08:24 UTC
As you comment in comment 1
"
if you uncheck "other field" 
then 
X-GCALENDAR-groupMembershipInfo: is no more exported
"

So what is the problem ?
Comment 7 Laurent Montel 2019-07-15 06:25:30 UTC
Git commit 4634dbb0bfd2b772c288247d7f1ec548573e6e53 by Laurent Montel.
Committed on 15/07/2019 at 06:24.
Pushed by mlaurent into branch 'master'.

Exclude by default X-GCALENDAR-groupMembershipInfo

M  +7    -1    kaddressbook/importexportplugins/vcards/vcardimportexportplugininterface.cpp

https://commits.kde.org/kdepim-addons/4634dbb0bfd2b772c288247d7f1ec548573e6e53
Comment 8 Philippe ROUBACH 2019-07-15 07:10:25 UTC
>> So what is the problem ?

this is a non contact info. For a user this info does not exist. Why user would want to exclude it ?

thanks for fix.