-
Notifications
You must be signed in to change notification settings - Fork 247
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
ics import failure when VEVENT includes X-APPLE-STRUCTURED-LOCATION #3905
Comments
I just successfully imported an
There are some reports about colon/semicolon mixups and missing escape characters with apple devices: Could you share a sample property that causes the error? |
What Apple is doing is "interesting", anyway. Properties that start with Think of the following situation (similar to #3863): You create an event with an Apple device (includes Technically, it would be possible to delete |
Hopefully Apple may use |
Apple should have used parameters on the location property, instead of using a completely separate property, to avoid exactly that problem of being out of sync when the I would special-case this and delete |
However, this bug is not about inconsistencies between I would recommend to look at how NextCloud parses property parameters, and compare that with the spec RFC 5545 Section 3.2. Note the |
I opened #3930 for the inconsistency issue. It deletes the As for the parsing error, a sample for the reproduction is needed. The snippet above is a valid case. |
i don't have or use Apple devices myself, but here's a trimmed-down and lightly-redacted version of an
If i remove the
|
Thanks for the sample! I could reproduce the error. Your second sample doesn't work because it doesn't specify a value (no Your first sample fails because This is odd. Can you confirm that you see this in the original as well (not a copy/redaction effect)? |
Yes, this is what the original looks like:
|
Ok, then it seems that the creator application failed to comply with RFC 5545. It does not allow newlines (CRLF) in text values. Newlines must be encoded as All in all, it seems like a major encoding error in the application that created the calendar/event. I couldn't find any misbehavior in Nextcloud. |
*nod* The creating application is the stock calendaring app on the iPhone. i don't feel NC has any obligation to deal with data that doesn't follow the relevant standards, so i'll just manually munge the data now that you've explained the source of the issue - thanks! i'm happy for this issue to be closed, if appropriate. |
Yes, removing the city and country information (including the newlines) from You can find multiple reports of decoding issues with Apple's |
The corresponding issue in vObject sabre-io/vobject#402 |
I have failed to reproduce the issue on both latest iOS and iCloud, so I guess we can close this. Otherwise, adding |
I have a private icloud-calendar from a user that triggers this behaviour. With the workaround from Currently implemented here in ./apps/dav/lib/CalDAV/WebcalCaching/RefreshWebcalService.php (calling a cleanup before parsing):
|
As you suggested it seems to also work with adding the ignore-option. Maybe that is really a viable solution we could add?
|
Calendar 3.0.5 on NC 22.2.3 failed to import an
.ics
file, sent from a recent iPhone, with the UI errors:and
with the
nextcloud.log
error:Bisecting the file revealed that the presence of the X-APPLE-STRUCTURED-LOCATION property within the VEVENT component was the cause; without this property, the file was imported successfully.
The text was updated successfully, but these errors were encountered: