contacts icon indicating copy to clipboard operation
contacts copied to clipboard

Backslashes (Escaped slashes) in URL's on imports from google

Open xstable opened this issue 2 years ago • 3 comments

Describe the bug

I'd import my addresslist from Google. On Google I've exported it as VCARD : image

If I import those vcs file into nextcloud/contacts, all / are escaped: image

If I look into the vcs, I see, that slashes are also escaped there, but only once: image

It would be nice, if contact could recognize such escape characters, and remove them

Steps to reproduce

  1. Create an address entry with an http://xyz.com in your google contacts
  2. Export an addressbook as VCS from Google
  3. Import it to nextcloud contacts
  4. see error in contacts address entry

Expected behavior

slashes should not be escaped in contacts

Actual behavior

slashes are escaped

Contact version

4.1.0

Operating system

didn't found.. as it's a managed one by hetzner. BTW, isn't there a way to see that in nextcloud gui?

PHP engine version

No response

Web server

No response

Database

No response

Operating system

No response

List of activated Apps

Can't run this command. 
I do have an managed service on Hetnzer: https://www.hetzner.com/storage/storage-share?country=de
So I don't have access to the server below.

Couldn't you create such an URL to output those list like the following section "Nextcloud Signing status"?: https://yournextcloud.tld/index.php/settings/integrity/failed

That would make things easier for bugreporters.

Nextcloud Signing status

No errors have been found.

Configuration report

Same here as above, no access to cli.

Additional info

No response

xstable avatar May 08 '22 06:05 xstable

yes, I confirm that. Please fix that.

Der-K-2000 avatar May 10 '22 11:05 Der-K-2000

Until there will be a bugfix for that issue, I fixed it with a dirty, but simple trick: In the big vCard-file (.vcf) with all the contacts from Google Contacts I replaced every

https\://

with

https://

and the same for http. Took me 10 seconds.

And after that I've imported the contacts without any problems.

Der-K-2000 avatar Jun 16 '22 20:06 Der-K-2000

Addresses from google have a possibly related issue. "\n" and a lot of semicolons that are directly added as such in the text on nextcloud contacts. for example ";;123 Test Ave;Toronto, ON H0H 0H0\nCA" is found under imported contacts, all under a single line.

Right now the best interoperability option seems to be to use nextcloud to create and edit all contacts and import into google, as they seem to import the nextcloud exports properly but not the other way around.

Edit: This seems to not always be the case. Perhaps it is something with how Google has changed their contact storage formats over the years or something but I have a different contact that imported properly and didn't contain the \n characters in the vcard export from Google.

mokahless avatar Oct 02 '22 05:10 mokahless