{ "id": "87943", "key": "TIMOB-8001", "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": [], "resolution": { "id": "10100", "description": "This issue won't be actioned.", "name": "Won't Do" }, "resolutiondate": "2020-01-09T21:34:50.000+0000", "created": "2012-03-14T12:36:16.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "parity", "reprod" ], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": null, "updated": "2020-01-09T21:34:50.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When writing to a buffer stream created with MODE_READ, Android throws an exception, as expected, but\r\niOS reports a successful write. Code sample follows:\r\n\r\n{code}\r\nvar win1 = Titanium.UI.createWindow({\r\n\ttitle : 'Tab 1',\r\n\tbackgroundColor : '#fff'\r\n});\r\nwin1.open();\r\n\r\nvar stream1 = Ti.Stream.createStream({\r\n\tsource : Ti.createBuffer({\r\n\t\tvalue: \"Now is the time for all good men to come to the aid of their country. Or party. Or something. Honestly, I don't remember.\"\r\n\t}),\r\n\tmode : Ti.Stream.MODE_READ\r\n});\r\n\r\nvar stream2 = Ti.Stream.createStream({\r\n\tsource : Ti.createBuffer({\r\n // Note that if the buffer is not initialized with a length or data, iOS throws a different exception.\r\n\t\tlength: 100\r\n\t}),\r\n // Ooops! It's a read-only stream!\r\n\tmode : Ti.Stream.MODE_READ\r\n});\r\nvar sync = true;\r\nif(sync) {\r\n\tvar bytes = Ti.Stream.writeStream(stream1, stream2, 100);\r\n\tTi.API.info(\"Bytes written: \" + bytes);\r\n} else {\r\n\tTi.Stream.writeStream(stream1, stream2, 1024, function(arg) {\r\n\t\tTi.API.info(\"bytes processed: \" + arg.bytesProcessed);\r\n\t\tTi.API.info(\"Event: \" + JSON.stringify(arg, false, 2));\r\n\t});\r\n}\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Can write to a BufferStream created in read-only mode", "creator": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aevans", "key": "aevans", "displayName": "Arthur Evans", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "245693", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \n\nTested with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 \nTitanium SDK version: 3.0.2 \niOS iPhone Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-04T11:34:32.000+0000", "updated": "2013-04-04T11:34:32.000+0000" }, { "id": "422665", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\niPhone 7 (10.2)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1.v20170620103414\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-23T20:01:14.000+0000", "updated": "2017-06-23T20:01:14.000+0000" }, { "id": "453600", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "It has been decided that this issue should be closed as “Won’t do.” This issue is out of date with our current supported SDK release (7.5.2.GA as of the date of closure), and out of date with mobile OS versions. \r\n\r\nIf community members feel that the issue is still valid, please create a new ticket. Please reference this closed ticket number, include SDK used, comments, and code that demonstrates/reproduces the issue.", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-01-09T21:34:50.000+0000", "updated": "2020-01-09T21:34:50.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }