-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vCard import broken: window.localStorage is null #433
Comments
Could you give us the complete stack trace of the browser log? |
I am having the same issue. Fresh install. Here is the browser trace.
|
Hmm, it's not actually the importer -- it's the sort order check that's causing it. In 'SortByService' in script.js its checking for defaultOrder from window.localStorage and it's null. I'm entirely unfamiliar with the project so I'm not sure of the ramifications, but if I put an null check around the block like so:
then the page loads properly. I'm not sure if that's the proper elegant fix, but it works for me. |
@weslimitless which browser (and version) are you using? |
Firefox 56.0.2, OSX |
I am having the same issue with importing a .vcf file (vcf with single entry does work). The left panel keeps spinning and opening a new tab does not show any contacts being added. Nextcloud server 12.03 |
@memen45 what contact version? Please add your logs. :) |
Contacts version 2.1.0 (just activated the day before yesterday)
There are no entries generated in the logging after trying the import (so,
admin settings, Logging tab) . Where can I find the logs that are
interesting for this problem?
Op 23 nov. 2017 08:15 schreef "John Molakvoæ" <[email protected]>:
… @memen45 <https://github.com/memen45> what contact version? Please add
your logs. :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#433 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Aafr93Arakd4CAytiK1DLgJIZXfKPAtvks5s5RuFgaJpZM4QYvk2>
.
|
Mostly the browser log then. :) |
Hi, I seem to have a similar problem. Not quite sure it it is the same cause. The VCF file is exported on android 7.1.2 stock contacts app. The Browser Console says:
General server configurationOperating system: FreeBSD journee 11.1-RELEASE FreeBSD 11.1-RELEASE #0 r321309: Fri Jul 21 02:08:28 UTC 2017 [email protected]:/usr/obj/usr/src/sys/GENERIC amd64 Web server: nginx/1.12.1 (fpm-fcgi) Database: pgsql PostgreSQL 9.5.10 on amd64-portbld-freebsd11.0, compiled by FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0), 64-bit PHP version: 7.1.10 PHP-modules loaded
Nextcloud configurationNextcloud version: 12.0.3 - 12.0.3.3 Updated from an older Nextcloud/ownCloud or fresh install: fresh install Where did you install Nextcloud from: zip-file Are you using external storage, if yes which one: files_external is disabled Are you using encryption: no Are you using an external user-backend, if yes which one: NO Signing status
Enabled apps
Disabled apps
Content of config/config.php
Client configurationBrowser: Operating system: macOS 10.12.6 LogsWeb server error log
Nextcloud log (data/nextcloud.log)
Browser log
|
@irgendwie didn't we had this bug fixed earlier on? :) |
Don't have logs at the moment, I'm on my phone. I am getting a similar issue. I was able to get past the spinning by opening the vcf file and changing version number to 3.0. It sort of works, gets past the spinning, but it took 30 minutes to upload a single contact and never imported more than the first contact. Might want to check the vcf version, Contacts won't upload any version 2.X vcf files. |
I really don't know Angular at all, but according to this SO post you probably cannot nest Now I'm also wondering why a massive framework like Angular is used for such a simple app, but I guess that's not really relevant here... |
I have also the same issue - same behavior and JavaScript error and trace from the console. I'm running the last version of the app (2.0.1) and using Firefox ESR 52.5.0. As pointed by @jgillich, I tried to comment this line which resolves this loading freeze and also the error from the console. |
Same here |
Same here... |
@pinq- what error do you have in the console then? @gubagu it works fine on my install here, and many users too. There is still an issue apparently since you guys are having differents errors. To people that still have the issue, could you all paste your console logs so we can list what singularities do you have? 🤗 |
@skjnldsv When I try to import regular file( 2.1) then the waiting spinner starts to spin and I get these errors in console: When I try to import modified file the I get these erros in tin the top of the screen "Could not create contact information."( in finnish). No errors in console. Now, how I can remove double contacts? :D |
Opened my .vcf file with VIM and did a find & replace all, changing all VERSION:2.1 to VERSION:3.0 If you're hanging at a certain percent I bet the uploader is hitting a contact that is version >3.0 |
Then an error is supposed to be displayed. It should not hang. |
Ah, I never had the error display. It would hang at whichever contact wasn't >=3.0. But after replacing all with 3.0 it ceases to hang. I never checked the console though, so if it only displays in the console that would be why I never saw an error. |
Changing the I don't know if this has to do with the fact that photos are stored as base64 and the Contacts app is unable to read those during the import? |
I also found changing VERSION:2.1 to VERSION:3.0 allowed contacts to finally import. Except a bunch that didn't (without indication of which ones). As moso stated, any contacts with photos (" In a text editor, after removing the photo data, still had some contacts fail to import. Any contact with some data that has " |
We have indeed dropped support for <3.0 vcards, but it's supposed to show an error. |
Can see the same Problem here, try to import my Contacts. All VCards are 2.1 and have BASE64 Pictures. Error: [$rootScope:infdig] .... |
Basically dropping support of versions <3 makes CardDav sync useless for e.g. my Samsung A5 2016. |
Same Problem with Samsung Galaxy S2 |
I have the same issue |
Same issue here. Can't import VERSION:2.1. NC 13.0.1.1
|
Thanks to pard68 and others, N;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:=4D=69=6E=61=6E=69;.... So I am happy after days of chasing for a solution to the issue, mine being a fresh nextcloud install. I also have to question the decision of dropping support for vcf version 2.1, this last one being still widely in use in my world : Thunderbird and Android contacts. Please do not consider Contacts and Calender management as a corner case of nextcloud usage ... And thanks for an otherwise quite useful product. |
I'd also appreciate if VCF v2.1 support was not dropped. |
Probably VCF 2.1 support is simply broken, but not dropped since SabreDAV supports it. |
Same problem as @laurent22, javascript error, unable to import contacts. |
I also confirm on latest FF & Chrome Browsers ... |
I just edited my vcf files, find and replace "VERSION:2.1" with "VERSION:3.0", and it works now. But now i have some carbook properties with "INTERNET=:" or "CELL=:" I tried a mysql replace() in the oc_cards_properties table, but no luck, it seems these properties are stored in oc_cards, in the carddata BLOB. In my vcf files, i have properties like "email;internet:[email protected]", is it an issue with 2.1/3.0 vcf format ? |
Replacing header VERSION might work for some cases, but there are changes between 3.0 and 2.1 and parser does things slightly differently. Therefore you cannot expect to work this 100%. See for example https://pear.php.net/manual/en/package.fileformats.contact-vcard-build.intro.php Proper 2.1 support would be welcomed. |
Photos can be imported by being explicit about the media type and specifying encoding as "b": |
This is probably a bug on the frontend, see console log at the bottom.
Steps to reproduce
Expected behaviour
Contacts are imported.
Actual behaviour
A javascript exception
Server configuration
Operating system: CentOS on a shell hoster (uberspace.de)
Web server: dunno
Database: postgres 9.3
PHP version: 7.0
Nextcloud version: 12.0.3
Contacts version: 2.0.1
Updated from an older Nextcloud or fresh install: fresh install
Signing status:
no errors have been found
List of activated apps:
Nextcloud configuration:
Are you using external storage, if yes which one: none
Are you using encryption: no
Are you using an external user-backend, if yes which one: none
Client configuration
Browser: both FF 56 and current Chrome
Operating system: Ubuntu 17.04
Logs
Web server error log
don't know where and I bet I don't have access
Nextcloud log (data/nextcloud.log)
entries are old and unrelated
Browser log
angular.js?v=3f38eefcee766e956d4f0af8bb974918-0:13920 Error: [$rootScope:inprog] $apply already in progress
The text was updated successfully, but these errors were encountered: