{ "id": "88071", "key": "TIMOB-8053", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "14065", "description": "Sprint 2012-17 API", "name": "Sprint 2012-17 API", "archived": true, "released": true, "releaseDate": "2012-08-27" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-12-10T22:16:35.000+0000", "created": "2012-03-16T11:16:49.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_calendar", "qe-port", "qe-testadded", "triage" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "20150", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "98077", "key": "TIMOB-10160", "fields": { "summary": "Android: Runtime Error when adding calendar events in ICS", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "23452", "type": { "id": "10011", "name": "Includes", "inward": "is included by", "outward": "includes" }, "inwardIssue": { "id": "99580", "key": "TIMOB-10540", "fields": { "summary": "Android: Map Calendar methods with Android permissions", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "15795", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "87714", "key": "TIMOB-7959", "fields": { "summary": "Android: No such column error when getting events in Ti.Android.Calendar", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-09-25T09:08:16.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "How to reproduce: \r\n1. Run this code on 4.0+ device\r\n{code}\r\nTitanium.UI.setBackgroundColor('#000');\r\n \r\nvar win = Titanium.UI.createWindow({ \r\n title:'Calendar',\r\n backgroundColor:'#fff'\r\n});\r\nwin.open();\r\n \r\nfunction showCalendars(calendars) {\r\n for (var i = 0; i < calendars.length; i++) {\r\n Ti.API.info(calendars[i].name);\r\n Ti.API.info(JSON.stringify(calendars[i]));\r\n }\r\n}\r\n \r\nTi.API.info('ALL CALENDARS:');\r\nshowCalendars(Ti.Android.Calendar.allCalendars);\r\nTi.API.info('SELECTABLE CALENDARS:');\r\nshowCalendars(Ti.Android.Calendar.selectableCalendars);\r\n \r\n// SHOW ALL EVENTS FOR 2010 FOR ONE CALENDAR\r\nvar YEAR = 2012;\r\nvar TEST_WITH_THIS_CAL_ID = 1;\r\nvar calendar = Ti.Android.Calendar.getCalendarById(TEST_WITH_THIS_CAL_ID);\r\n \r\nvar events = calendar.getEventsInYear(YEAR);\r\nif (events && events.length) {\r\n Ti.API.info(events.length + ' event(s) in ' + YEAR);\r\n \r\n for (var i = 0; i < events.length; i++) {\r\n Ti.API.info(JSON.stringify(events[i]));\r\n \r\n }\r\n} else {\r\n Ti.API.info('No events');\r\n}\r\n \r\n \r\n \r\nvar CALENDAR_TO_USE = 1;\r\nvar calendar = Ti.Android.Calendar.getCalendarById(CALENDAR_TO_USE);\r\n \r\n// Create the event\r\nvar eventBegins = new Date(2012, 03, 26, 12, 0, 0);\r\nvar eventEnds = new Date(2012, 03, 26, 14, 0, 0);\r\nvar details = {\r\n title: 'Do some stuff',\r\n description: \"I'm going to do some stuff at this time.\",\r\n begin: eventBegins,\r\n end: eventEnds\r\n};\r\n \r\nvar event = calendar.createEvent(details);\r\n \r\n// Now add a reminder via e-mail for 10 minutes before the event.\r\nvar reminderDetails = {\r\n minutes: 10,\r\n method: Ti.Android.Calendar.METHOD_EMAIL\r\n};\r\nevent.createReminder(reminderDetails);\r\n{code}\r\n2. Observe crash. App should not crash\r\n\r\nP.S: Permissions should be specify manually as there are no permission mappings for calendar at the moment.", "attachment": [], "flagged": false, "summary": "Android: Calendar crashes on ICS", "creator": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "environment": null, "closedSprints": [ { "id": 3, "state": "closed", "name": "Release 3.0.0", "startDate": "2012-09-27T05:26:46.636Z", "endDate": "2012-10-08T20:05:00.000Z", "completeDate": "2012-12-20T17:03:19.403Z" } ], "comment": { "comments": [ { "id": "202067", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "more data of this, if it helps\r\nHTC One V with android 4.0.3\r\n\r\n~~~\r\n07-09 16:20:05.284: E/TiAPI(12548): ==================================================\r\n07-09 16:20:05.284: E/Proxy(12548): Unable to lookup Proxy.prototype.getProperty\r\n07-09 16:20:05.284: E/Proxy(12548): Unable to lookup Proxy.prototype.getProperty\r\n07-09 16:20:05.284: I/TiAPI(12548): [{\"hidden\":false,\"selected\":true,\"name\":\"PC Sync\",\"id\":\"1\"},{\"hidden\":false,\"selected\":true,\"name\":\"People\",\"id\":\"3\"}]\r\n07-09 16:20:05.284: E/TiAPI(12548): ==================================================\r\n07-09 16:20:05.284: E/TiAPI(12548): ==================================================\r\n07-09 16:20:05.284: E/Proxy(12548): Unable to lookup Proxy.prototype.getProperty\r\n07-09 16:20:05.284: I/TiAPI(12548): {\"hidden\":false,\"selected\":true,\"name\":\"PC Sync\",\"id\":\"1\"}\r\n07-09 16:20:05.284: E/TiAPI(12548): ==================================================\r\n07-09 16:20:05.295: D/dalvikvm(1833): GC_EXPLICIT freed 3K, 29% free 3422K/4771K, paused 2ms+9ms\r\n07-09 16:20:05.295: I/XT9_C(1833): [T9_ReleaseBuffer] Release memory of LDB#0\r\n07-09 16:20:05.315: D/memalloc(1833): /dev/pmem: Unmapping buffer base:0x527ab000 size:8355840 offset:7557120\r\n07-09 16:20:05.345: D/TitaniumTableViewItem(12548): (main) [157,64656] Row content measure (322x39)\r\n07-09 16:20:05.355: D/TitaniumTableViewItem(12548): (main) [2,64658] Row content measure (322x39)\r\n07-09 16:20:05.365: D/TitaniumTableViewItem(12548): (main) [10,64668] Row content measure (322x39)\r\n07-09 16:20:05.395: D/TiUIView(12548): (main) [32,64700] TAP, TAP, TAP on ti.modules.titanium.ui.ButtonProxy@40f145f8\r\n07-09 16:20:05.395: E/DatabaseUtils(10724): Writing exception to parcel\r\n07-09 16:20:05.395: E/DatabaseUtils(10724): java.lang.IllegalArgumentException: Invalid column visibility\r\n07-09 16:20:05.395: E/DatabaseUtils(10724): \tat android.database.sqlite.SQLiteQueryBuilder.computeProjection(SQLiteQueryBuilder.java:628)\r\n07-09 16:20:05.395: E/DatabaseUtils(10724): \tat android.database.sqlite.SQLiteQueryBuilder.buildQuery(SQLiteQueryBuilder.java:424)\r\n07-09 16:20:05.395: E/DatabaseUtils(10724): \tat android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.java:368)\r\n07-09 16:20:05.395: E/DatabaseUtils(10724): \tat android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.java:312)\r\n07-09 16:20:05.395: E/DatabaseUtils(10724): \tat com.android.providers.calendar.CalendarProvider2.handleInstanceQuery(CalendarProvider2.java:1235)\r\n07-09 16:20:05.395: E/DatabaseUtils(10724): \tat com.android.providers.calendar.HtcFilterImpl_google.do_Query_INSTANCES(HtcFilterImpl_google.java:298)\r\n07-09 16:20:05.395: E/DatabaseUtils(10724): \tat com.android.providers.calendar.HtcFilterImpl_google.handle_Query(HtcFilterImpl_google.java:53)\r\n07-09 16:20:05.395: E/DatabaseUtils(10724): \tat com.android.providers.calendar.HtcCalendarProvider.query(HtcCalendarProvider.java:117)\r\n07-09 16:20:05.395: E/DatabaseUtils(10724): \tat android.content.ContentProvider$Transport.query(ContentProvider.java:189)\r\n07-09 16:20:05.395: E/DatabaseUtils(10724): \tat android.content.ContentProviderNative.onTransact(ContentProviderNative.java:141)\r\n07-09 16:20:05.395: E/DatabaseUtils(10724): \tat android.os.Binder.execTransact(Binder.java:338)\r\n07-09 16:20:05.395: E/DatabaseUtils(10724): \tat dalvik.system.NativeStart.run(Native Method)\r\n07-09 16:20:05.405: W/System.err(12548): java.lang.IllegalArgumentException: Invalid column visibility\r\n07-09 16:20:05.405: W/System.err(12548): \tat android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:165)\r\n07-09 16:20:05.405: W/System.err(12548): \tat android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:135)\r\n07-09 16:20:05.405: W/System.err(12548): \tat android.content.ContentProviderProxy.query(ContentProviderNative.java:406)\r\n07-09 16:20:05.405: W/System.err(12548): \tat android.content.ContentResolver.query(ContentResolver.java:315)\r\n07-09 16:20:05.415: W/System.err(12548): \tat ti.modules.titanium.android.calendar.EventProxy.queryEventsBetweenDates(EventProxy.java:82)\r\n07-09 16:20:05.415: W/System.err(12548): \tat ti.modules.titanium.android.calendar.EventProxy.queryEventsBetweenDates(EventProxy.java:216)\r\n07-09 16:20:05.415: W/System.err(12548): \tat ti.modules.titanium.android.calendar.CalendarProxy.getEventsBetweenDates(CalendarProxy.java:157)\r\n07-09 16:20:05.415: W/System.err(12548): \tat org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)\r\n07-09 16:20:05.415: W/System.err(12548): \tat org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:60)\r\n07-09 16:20:05.425: W/System.err(12548): \tat org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:629)\r\n07-09 16:20:05.425: W/System.err(12548): \tat org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:822)\r\n07-09 16:20:05.425: W/System.err(12548): \tat org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:306)\r\n07-09 16:20:05.425: W/System.err(12548): \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n07-09 16:20:05.435: W/System.err(12548): \tat android.os.Looper.loop(Looper.java:154)\r\n07-09 16:20:05.435: W/System.err(12548): \tat org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:104)\r\n07-09 16:20:05.465: E/TiJSError(12548): (main) [69,64769] ----- Titanium Javascript Runtime Error -----\r\n07-09 16:20:05.465: E/TiJSError(12548): (main) [0,64769] - In helpers/calendar_helper.js:81,35\r\n07-09 16:20:05.465: E/TiJSError(12548): (main) [0,64769] - Message: Uncaught Error: Invalid column visibility\r\n07-09 16:20:05.465: E/TiJSError(12548): (main) [0,64769] - Source: \t\t\t\tvar cal_events = calendars[i].getEventsBetweenDates(startDate,endDate);\r\n07-09 16:20:05.505: E/V8Exception(12548): Exception occurred at helpers/calendar_helper.js:81: Uncaught Error: Invalid column visibility\r\n\r\n~~~", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-07-09T07:29:34.000+0000", "updated": "2012-07-09T07:29:34.000+0000" }, { "id": "202371", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "HD Ticket: appc.me/c/APP-631725", "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-10T11:03:01.000+0000", "updated": "2012-07-10T11:03:01.000+0000" }, { "id": "211181", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "Any news on this? \r\nAt least an workaround?\r\n\r\nThank you.\r\n", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-08-02T04:46:13.000+0000", "updated": "2012-08-02T04:46:13.000+0000" }, { "id": "211182", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "Guys,\r\n\r\n'Calendar currently does not work on ICS' is not a 'New Feature'.\r\nThis would be a bug as Calendar WAS working, stopped working with ICS.\r\n\r\nICS is rolling out on nearly all the new phones, leaving many of us without Cal support.", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2012-08-02T05:07:22.000+0000", "updated": "2012-08-02T05:07:22.000+0000" }, { "id": "211192", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Stephen - I agree with your comments. I have converted this to a bug and we will fix it for the next release.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-02T08:38:16.000+0000", "updated": "2012-08-02T08:38:16.000+0000" }, { "id": "213554", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue exists on 2.0.3 as well, getting Runtime error \"Uncaught Error: Invalid column visibility\".\r\n\r\nTested on: Titanium Studio, build: 2.1.1.201207271312 \r\nTitanium SDK, build: 2.0.3.v20120806151610 \r\nDevices: Nexus 7 (4.1); Galaxy Nexus (4.0.4)", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-09T09:52:15.000+0000", "updated": "2012-08-09T09:52:15.000+0000" }, { "id": "215115", "author": { "name": "flobby", "key": "flobby", "displayName": "florian bergmann", "active": true, "timeZone": "Europe/Berlin" }, "body": "Shouldn't this be fixed? We need reliable estimations for fixes otherwise we can not give an estimation to our customers which is really... well necessary if we want to work with your products...\r\n\r\nanyway: Any updates on this? Any new estimations?", "updateAuthor": { "name": "flobby", "key": "flobby", "displayName": "florian bergmann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-08-20T02:51:44.000+0000", "updated": "2012-08-20T02:51:44.000+0000" }, { "id": "215282", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Florian - This bug is scheduled to be fixed for the next release (2.2.0).", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-20T20:38:48.000+0000", "updated": "2012-08-20T20:38:48.000+0000" }, { "id": "215317", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "@Neeraj could I ask when is 2.2.0 scheduled to be released? I was testing with the latests 2.2.0 CI and is still present. Thank you.", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-08-21T07:04:58.000+0000", "updated": "2012-08-21T07:04:58.000+0000" }, { "id": "215323", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Dan - 2.2.0 is tentatively scheduled for the October. We do plan to get this particular issue fixed in next week or two.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-21T07:59:58.000+0000", "updated": "2012-08-21T07:59:58.000+0000" }, { "id": "215326", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "@Neeraj Thank you", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-08-21T08:09:07.000+0000", "updated": "2012-08-21T08:09:07.000+0000" }, { "id": "215994", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thank you, I tested on 2.3.7, 3.2, 4.0.3 and looks that is working ok :)", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-08-24T06:31:34.000+0000", "updated": "2012-08-24T06:31:34.000+0000" }, { "id": "230121", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can still reproduce this issue with 3.0.0.v20121204144658 with Motorola zoom 4.0.3 Permission Denial error", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-05T21:56:40.000+0000", "updated": "2012-12-05T21:56:40.000+0000" }, { "id": "230701", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Need to generate permission. Can be included manually tight now but TIMOB-10540 is the ticket to generate them automatically.", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-12-10T21:58:07.000+0000", "updated": "2012-12-10T21:58:34.000+0000" }, { "id": "230709", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with latest 3.0.X as a sanity check, it works fine when permission is included. Re-closing.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-10T22:16:07.000+0000", "updated": "2012-12-10T22:16:07.000+0000" }, { "id": "231408", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It worked without error when permission added to tiapp.xmls manually.\r\nTitanium SDK:3.0.0.v20121212184921\r\nTitanium  Studio:3.0.0.201212071410\r\nDevice:HTC Desire V Android 4.0.3", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-14T10:17:00.000+0000", "updated": "2012-12-14T10:17:00.000+0000" } ], "maxResults": 16, "total": 16, "startAt": 0 } } }