nextcloud / contacts

📇 Contacts app for Nextcloud
https://apps.nextcloud.com/apps/contacts
GNU Affero General Public License v3.0
569 stars 173 forks source link

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

Open xstable opened 2 years ago

xstable commented 2 years ago

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

Der-K-2000 commented 2 years ago

yes, I confirm that. Please fix that.

Der-K-2000 commented 2 years ago

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.

mokahless commented 2 years ago

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.