{ "id": "138183", "key": "AC-1538", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-11-05T23:26:50.000+0000", "created": "2014-10-16T05:32:55.000+0000", "labels": [ "TCSupportTriage", "iOS", "iPad" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:59.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Have specified maxLength property, it will crash if try to paste the characters even more.\r\n\r\nTest code:\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nvar tf = Ti.UI.createTextField({\r\n width: Ti.UI.FILL,\r\n maxLength: 100\r\n});\r\nwin.add(tf);\r\nwin.open();\r\n{code}\r\n\r\nTest case:\r\n1. Input in TextField or TextArea \"aaaaaaaaaa\"\r\n2. Copy the \"aaaaaaaaaa\"\r\n3. Paste the \"aaaaaaaaaa\" * 10 times\r\n4. Press the Undo on keyboard\r\n5. App will crash", "attachment": [ { "id": "51992", "filename": "log", "author": { "name": "k0sukey", "key": "k0sukey", "displayName": "Kosuke Isobe", "active": true, "timeZone": "Asia/Tokyo" }, "created": "2014-10-16T05:32:55.000+0000", "size": 9492, "mimeType": "text/html" } ], "flagged": false, "summary": "TextField and TextArea has crashed with an uncaught exception 'NSRangeException'.", "creator": { "name": "k0sukey", "key": "k0sukey", "displayName": "Kosuke Isobe", "active": true, "timeZone": "Asia/Tokyo" }, "subtasks": [], "reporter": { "name": "k0sukey", "key": "k0sukey", "displayName": "Kosuke Isobe", "active": true, "timeZone": "Asia/Tokyo" }, "environment": "Titanium SDK 3.4.0.GA", "comment": { "comments": [ { "id": "328426", "author": { "name": "hmrida", "key": "hmrida", "displayName": "Harish Mridha", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hi,\r\n\r\nWe tried to reproduce this issue with a sample test case. It’s not a valid bug. Any attempt to input text beyond the length (including pasting a string larger than maxLength) will not edit the field's contents.\r\n\r\nh5. TESTING ENVIRONMENT:\r\n\r\n Ti SDK 3.4.0.GA\r\n Ti CLI 3.4.0\r\n Mac OS X 10.9.5\r\n iPad v8.0\r\n\r\nh5. TEST CODE:\r\n\r\n{code} \r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor:'white'\r\n});\r\nvar tf = Ti.UI.createTextField({\r\n\ttop:50,\r\n\tbackgroundColor: 'red',\r\n \twidth: Ti.UI.FILL,\r\n \tmaxLength: 100\r\n});\r\nwin.add(tf);\r\nwin.open();\r\n{code}\r\n\r\nh5. STEPS TO TEST:\r\n\r\n- Create a simple project.\r\n- Update project with test code\r\n- Run on iOS device\r\n \r\nh5. EXPECTED RESULT:\r\n\r\nIt’s working as expected.\r\n\r\nThanks\r\n", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-10-17T06:03:45.000+0000", "updated": "2014-11-05T23:26:43.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }