{"action":"opened","issue":{"url":"https://api.github.com/repos/owncloudarchive/calendar/issues/1042","repository_url":"https://api.github.com/repos/owncloudarchive/calendar","labels_url":"https://api.github.com/repos/owncloudarchive/calendar/issues/1042/labels{/name}","comments_url":"https://api.github.com/repos/owncloudarchive/calendar/issues/1042/comments","events_url":"https://api.github.com/repos/owncloudarchive/calendar/issues/1042/events","html_url":"https://github.com/owncloudarchive/calendar/issues/1042","id":138200386,"number":1042,"title":"Emoticon in calendar event causes parse error","user":{"login":"csware","id":428133,"avatar_url":"https://avatars.githubusercontent.com/u/428133?v=3","gravatar_id":"","url":"https://api.github.com/users/csware","html_url":"https://github.com/csware","followers_url":"https://api.github.com/users/csware/followers","following_url":"https://api.github.com/users/csware/following{/other_user}","gists_url":"https://api.github.com/users/csware/gists{/gist_id}","starred_url":"https://api.github.com/users/csware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csware/subscriptions","organizations_url":"https://api.github.com/users/csware/orgs","repos_url":"https://api.github.com/users/csware/repos","events_url":"https://api.github.com/users/csware/events{/privacy}","received_events_url":"https://api.github.com/users/csware/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-03T14:52:39Z","updated_at":"2016-03-03T14:52:39Z","closed_at":null,"body":"I don't know if this is the right place and this affects the calendar. However, https://github.com/owncloud/calendar removed all old issues and is now only for the new calendar of 9.x - also there is stated, that I should report it here.\r\n\r\n### Steps to reproduce\r\n1. Create a new calendar, and mount it on an iPhone\r\n2. use an iPhone and create a new entry which has an emoticon (in e.g., the location)\r\n3. See parse errors in owncloud.log\r\n\r\n### Expected behaviour\r\nSynchronisation should work w/o problems. Calendar is not usable any more.\r\n\r\n### Actual behaviour\r\nI get an error, which is similar to #997 \r\n\r\n`Exception: {\"Message\":\"End of document reached prematurely\",\"Exception\":\"Sabre\\\\VObject\\\\EofException\",\"Code\":0,\"Trace\":\"#0 \\/var\\/www\\/SERVERNAME\\/owncloud\\/3rdparty\\/sabre\\/vobject\\/lib\\/Parser\\/MimeDir.php(168): Sabre\\\\VObject\\\\Parser\\\\MimeDir->readLine()\\n#1 \\/var\\/www\\/SERVERNAME\\/owncloud\\/3rdparty\\/sabre\\/vobject\\/lib\\/Parser\\/MimeDir.php(137): Sabre\\\\VObject\\\\Parser\\\\MimeDir->parseLine('BEGIN:VEVENT')\\n#2 \\/var\\/www\\/SERVERNAME\\/owncloud\\/3rdparty\\/sabre\\/vobject\\/lib\\/Parser\\/MimeDir.php(63): Sabre\\\\VObject\\\\Parser\\\\MimeDir->parseDocument()\\n#3 \\/var\\/www\\/SERVERNAME\\/owncloud\\/3rdparty\\/sabre\\/vobject\\/lib\\/Reader.php(44): Sabre\\\\VObject\\\\Parser\\\\MimeDir->parse('BEGIN:VCALENDAR...', 0)\\n#4 \\/var\\/www\\/SERVERNAME\\/owncloud\\/apps\\/calendar\\/lib\\/sabre\\/backend.php(384): Sabre\\\\VObject\\\\Reader::read('BEGIN:VCALENDAR...')\\n#5 \\/var\\/www\\/SERVERNAME\\/owncloud\\/3rdparty\\/sabre\\/dav\\/lib\\/CalDAV\\/Calendar.php(163): OCA\\\\Calendar\\\\Sabre\\\\Backend->getCalendarObject('50', '81A9DEB2-084B-4...')\\n#6 \\/var\\/www\\/SERVERNAME\\/owncloud\\/3rdparty\\/sabre\\/dav\\/lib\\/DAV\\/Tree.php(105): Sabre\\\\CalDAV\\\\Calendar->childExists('81A9DEB2-084B-4...')\\n#7 \\/var\\/www\\/SERVERNAME\\/owncloud\\/3rdparty\\/sabre\\/dav\\/lib\\/DAVACL\\/Plugin.php(758): Sabre\\\\DAV\\\\Tree->nodeExists('calendars\\/steff...')\\n#8 [internal function]: Sabre\\\\DAVACL\\\\Plugin->beforeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#9 \\/var\\/www\\/SERVERNAME\\/owncloud\\/3rdparty\\/sabre\\/event\\/lib\\/EventEmitterTrait.php(105): call_user_func_array(Array, Array)\\n#10 \\/var\\/www\\/SERVERNAME\\/owncloud\\/3rdparty\\/sabre\\/dav\\/lib\\/DAV\\/Server.php(456): Sabre\\\\Event\\\\EventEmitter->emit('beforeMethod', Array)\\n#11 \\/var\\/www\\/SERVERNAME\\/owncloud\\/3rdparty\\/sabre\\/dav\\/lib\\/DAV\\/Server.php(254): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#12 \\/var\\/www\\/SERVERNAME\\/owncloud\\/apps\\/calendar\\/appinfo\\/remote.php(60): Sabre\\\\DAV\\\\Server->exec()\\n#13 \\/var\\/www\\/SERVERNAME\\/owncloud\\/remote.php(137): require_once('\\/var\\/www\\/srv1.7...')\\n#14 {main}\",\"File\":\"\\/var\\/www\\/SERVERNAME\\/owncloud\\/3rdparty\\/sabre\\/vobject\\/lib\\/Parser\\/MimeDir.php\",\"Line\":250}`\r\n\r\nWhen I issue `SELECT * FROM oc_clndr_objects WHERE calendardata NOT LIKE '%END:VCALENDAR%' ` I see that the entry is truncated after `Location:`.\r\n\r\nExample entry: [Privat.ics.txt](https://github.com/owncloud/core/files/156965/Privat.ics.txt)\r\n\r\n### Server configuration\r\n**Operating system**:\r\n\r\nDebian 8.3\r\n\r\n**Web server:**\r\n\r\nApache 2.4\r\n\r\n**Database:**\r\n\r\nMySQL 5.5.47\r\n\r\n**PHP version:**\r\n\r\n5.6.17-0+deb8u1\r\n\r\n**ownCloud version:** (see ownCloud admin page)\r\n\r\n8.2.2 (stable) \r\n\r\n**Updated from an older ownCloud or fresh install:**\r\n\r\nUpdated from older version.\r\n\r\n**List of activated apps:**\r\n\r\n```\r\nEnabled:\r\n  - activity: 2.1.3\r\n  - calendar: 0.8.2\r\n  - contacts: 0.5.0.0\r\n  - files: 1.2.0\r\n  - files_locking:\r\n  - files_pdfviewer: 0.7\r\n  - files_sharing: 0.7.0\r\n  - files_texteditor: 2.0\r\n  - files_trashbin: 0.7.0\r\n  - files_versions: 1.1.0\r\n  - files_videoviewer: 0.1.3\r\n  - firstrunwizard: 1.1\r\n  - gallery: 14.2.0\r\n  - templateeditor: 0.1\r\n  - updater: 0.6\r\nDisabled:\r\n  - encryption\r\n  - external\r\n  - files_external\r\n  - notifications\r\n  - provisioning_api\r\n  - user_external\r\n  - user_ldap\r\n```\r\n\r\n**The content of config/config.php:**\r\n\r\n```\r\n{\r\n    \"system\": {\r\n        \"instanceid\": \"51547ad6130fd\",\r\n        \"passwordsalt\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"datadirectory\": \"\\/srv\\/owncloud-data\",\r\n        \"dbtype\": \"mysql\",\r\n        \"version\": \"8.2.2.2\",\r\n        \"dbname\": \"owncloud\",\r\n        \"dbhost\": \"localhost\",\r\n        \"dbtableprefix\": \"oc_\",\r\n        \"dbuser\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"dbpassword\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"installed\": true,\r\n        \"forcessl\": true,\r\n        \"loglevel\": \"2\",\r\n        \"apps_paths\": [\r\n            {\r\n                \"path\": \"\\/var\\/www\\/SERVERNAME\\/owncloud\\/apps\",\r\n                \"url\": \"\\/apps\",\r\n                \"writable\": true\r\n            }\r\n        ],\r\n        \"maintenance\": false,\r\n        \"theme\": \"\",\r\n        \"overwrite.cli.url\": \"https:\\/\\/XXXX\",\r\n        \"trusted_domains\": [\r\n            \"XXXX\",\r\n            \"cloud.XXXX\"\r\n        ],\r\n        \"secret\": \"***REMOVED SENSITIVE VALUE***\",\r\n        \"trashbin_retention_obligation\": \"auto\",\r\n        \"memcache.local\": \"\\\\OC\\\\Memcache\\\\Redis\",\r\n        \"redis\": {\r\n            \"host\": \"\\/var\\/run\\/redis\\/redis.sock\",\r\n            \"port\": 0,\r\n            \"timeout\": 0\r\n        }\r\n    }\r\n}\r\n```\r\n\r\n**Are you using encryption:** no\r\n\r\n**Apache log**\r\n\r\n```\r\nXXXXX - - [03/Mar/2016:15:28:21 +0100] \"PUT /remote.php/caldav/calendars/USERNAME/privat/81A9DEB2-084B-48C1-876D-D213A6ED50CF.ics HTTP/1.1\" 201 779 \"-\" \"iOS/9.2.1 (13D15) dataaccessd/1.0\"\r\nXXXXX - - [03/Mar/2016:15:28:48 +0100] \"DELETE /remote.php/caldav/calendars/USERNAME/privat/81A9DEB2-084B-48C1-876D-D213A6ED50CF.ics HTTP/1.1\" 500 1121 \"-\" \"iOS/9.2.1 (13D15) dataaccessd/1.0\"\r\n```"}}