-
Notifications
You must be signed in to change notification settings - Fork 173
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
Unable to edit any contacts #1009
Comments
Hello! |
I downloaded the contact vCard and it seems to have a lot of custom values in it, such as This contact file has been imported and exported from a bunch of different devices, so I guess that would be why it's full of invalid/weird data. I'll create a new contact with the same data. It's strange, though, because Nextcloud can display it just fine - albeit without the custom values. Thank you! |
This should not cause any issues. Worst case would be that the entry would not appear in the nextcloud app. Those are not invalid properties though, just custom ones and they might not be supported by all softwares :) Is it working on nextcloud now? I see you just closed the issue 🤔 |
I closed it because I assumed that was what was causing the issue, but if not, then it's still an issue. I don't really want to upload the vCard because it contains a lot of private info (as any contact card does), but it definitely appears in the Nextcloud contacts app, and works everywhere else (my phone, Evolution, etc) |
You can paste it here as text and just change the sensitive data 😉 So, just o make sure we're on the same line, you created the issue with the title 'Unable to edit any contacts'. You're talking on the nextcloud app? You can't edit your contacts? |
so i checked again and it turns out that i can edit most contacts, just not some of them. i'll upload an example with sensitive info removed in a moment. |
Awesome! :) |
Here's a version of the contact card with sensitive info removed: |
@Lynnesbian Thanks! How to access your browser console (Click to expand)Chrome
Safari
IE9
Firefox
Opera
|
When I import the blank version it works fine, but when I try the actual version, it doesn't import. There's no error message, and the console logs don't really show anything:
The Nextcloud logs don't show anything either... this is a difficult one :s |
@Lynnesbian Okay, that is weird. |
The blank version (attached above) imports fine, the original doesn't import and doesn't show any sort of error message either... |
@Lynnesbian Could you import the broken contact and paste the console log here? Thanks! |
I have got the same issue with the following VCard (extracted from the
I'm not sure, but the slash in the address could be the cause. And here is the JavaScript error that I get (I tried to add the contact to a group): |
I have debugged a bit and found out that It's actually a bug in ical.js: Due to the comma in the "Adress" field's label ( To be fair, the bug is either in ical.js at this location or somewhere else in ical.js (or possibly in the nextcloud/contacts JS) where the label is erroneously converted into an Update: Okay, so it's actually a bug in nextcloud/contacts, because it converts the address label into an Update 2: Actually it is ical.js that returns the parsed vcard with the label converted into an Minimal proof:
|
@Lynnesbian Can you confirm whether the following line in your vCard also contains a comma in the
|
It did contain a comma, yes |
Thanks both of you for the debug!! 🤗 |
@skjnldsv While kewisch/ical.js#386 awaits resolution, a workaround would be to put the
|
TO FOLKS AFFECTED BY THIS: Please go to kewisch/ical.js#386 and bump it up |
Describe the bug
When editing any field of a contact (e.g. adding or deleting an email address), a loading indicator appears, but nothing happens. An error is visible in the JavaScript console:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The edit is saved
Actual behavior
It stays loading forever and does not apply the update
Server configuration
Operating system: Linux
Web server: Nginx
Database: MariaDB
PHP version: 7.3
Nextcloud version: 15.0.5
Contacts version: 3.0.5
Updated from an older Nextcloud or fresh install: Updated from 14.x
Signing status:
List of activated apps:
Nextcloud configuration:
Client configuration
Browser: Firefox 65.0.1
Operating system: Linux
CardDAV-clients: N/A
Logs
Web server error log
Nextcloud log
data/nextcloud.log
Browser log
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: