{ "id": "131814", "key": "TIMOB-17170", "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": null, "resolutiondate": null, "created": "2014-06-17T11:07:52.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-3.3.0" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [ { "id": "38562", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "132018", "key": "NATIVESDK-198", "fields": { "summary": "Android: APS Files - Creating a large APS File will throw an OutOfMemory exception", "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": "38882", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "132777", "key": "NATIVESDK-241", "fields": { "summary": "Android: APS Files - Creating a large APS File will throw a FATAL EXCEPTION", "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": null, "updated": "2018-02-28T20:03:14.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Getting Exception while uploading file above 25 mb\r\n\r\nSteps followed:\r\n\r\nDownload any file above 25mb in size and locate in \"Resources/windows/files\" in the sample app and then\r\nIn \"files\", open \"create.js\" and replace the file name 'sampleFile.txt' with the new file name which was downloaded.\r\n\r\n1.Now install the app on to a device \r\n2. Go to Files > Create File \r\n3. Specify the ACS file object.\r\n4. Press Create \r\n\r\nExpected Result:\r\n4.Should get a message saying \"File size cannot exceed 25mb.\"\r\n\r\nActual Result:\r\n4. Getting Exception.\r\nRefer to logs attached.\r\n", "attachment": [ { "id": "48999", "filename": "exception.txt", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-17T11:07:52.000+0000", "size": 3110, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: Cloud: File Upload: Getting Exception while uploading file above 25 mb", "creator": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio:3.3.0.201406111952\r\nSDK:3.3.0.v20140616174113\r\ntitanium : 3.3.0-rc \r\nalloy: 1.4.0-rc \r\nacs: 1.0.14 \r\nnpm:1.3.2 \r\ntitanium-code-processor: 1.1.1\r\nOS : Windows 8 \r\nDevice : Nexus4(v4.1.1),Nexus5(v4.4.2)", "comment": { "comments": [ { "id": "309308", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Which sample application is this?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-17T14:18:51.000+0000", "updated": "2014-06-17T14:18:51.000+0000" }, { "id": "309504", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Have used the sample application from latest sdk's modules folder -> modules/commonjs/ti.cloud/3.2.3/example", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-18T05:01:31.000+0000", "updated": "2014-06-18T05:01:31.000+0000" }, { "id": "309646", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I tried to reproduce this issue with a video file of 30MB. \r\nI did not get {code}I/O error during system call, Broken pipe{code} as seen by [~pagarwal] but ,got an HTTP error of the file being too large.\r\n{code}\r\n[ERROR] : TiHttpClient: (TiHttpClient-2) [27571,56991] HTTP Error (org.apache.http.client.HttpResponseException): Request Entity Too Large\r\n[ERROR] : TiHttpClient: org.apache.http.client.HttpResponseException: Request Entity Too Large\r\n[ERROR] : TiHttpClient: \tat ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:259)\r\n[ERROR] : TiHttpClient: \tat ti.modules.titanium.network.TiHTTPClient$LocalResponseHandler.handleResponse(TiHTTPClient.java:218)\r\n[ERROR] : TiHttpClient: \tat org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:657)\r\n[ERROR] : TiHttpClient: \tat org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:637)\r\n[ERROR] : TiHttpClient: \tat ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1291)\r\n[ERROR] : TiHttpClient: \tat java.lang.Thread.run(Thread.java:841)\r\n[ERROR] : undefined: Unexpected token <\r\n[ERROR] : Unexpected token <\r\n{code}\r\n\r\nEnvironment:\r\nAppc Studio : 3.3.0.201406171619\r\nTi SDK : 3.3.0.v20140617161713\r\nMac OSX : 10.8.5\r\nAlloy : 1.4.0-rc\r\nCLI - 3.3.0-rc\r\nCode Processor: 1.1.1\r\nNexus 5 - android 4.4.3", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-18T18:04:47.000+0000", "updated": "2014-06-18T18:05:13.000+0000" }, { "id": "309662", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The ACS request from ti.cloud module is not reaching ACS server since we don't see the ACS logs contain file/create.json so this is likely failing in either ti.cloud or HTTPRequest API.\r\n\r\n{code}\r\n06-18 11:39:37.758: W/TiBaseFile(8586): (KrollRuntimeThread) [6087,46910] Method is not supported org.appcelerator.titanium.io.TiResourceFile : getParent\r\n06-18 11:39:37.768: D/audio_hw_primary(185): select_devices: out_snd_device(2: speaker) in_snd_device(0: )\r\n06-18 11:39:37.798: I/TiAPI(8586): ACS Request: { url: \"files/create.json\", verb: \"POST\", data: {\"name\":\"test\",\"file\":{\"hidden\":false,\"nativePath\":\"file:///android_asset/Resources/windows/files/testfile.mkv\",\"writable\":false,\"executable\":false,\"parent\":null,\"readonly\":true,\"directoryListing\":[],\"size\":32211719,\"apiName\":\"Ti.Filesystem.File\",\"name\":\"/testfile.mkv\",\"symbolicLink\":false,\"bubbleParent\":true}} })\r\n06-18 11:39:37.808: I/TiAPI(8586): POST: https://api.cloud.appcelerator.com/v1/files/create.json?key=AKgvd9EtDRV53DqGVDNMm6rKkSWpbAIq&_session_id=yI_v1fmbObXz8a2_5Uv_O0h81m0\r\n06-18 11:39:37.808: I/TiAPI(8586): header: {}\r\n06-18 11:39:37.808: W/TiBaseFile(8586): (KrollRuntimeThread) [47,46957] Method is not supported org.appcelerator.titanium.io.TiResourceFile : getParent\r\n06-18 11:39:37.848: I/TiAPI(8586): data: {\"name\":\"test\",\"suppress_response_codes\":\"true\",\"ti_analytics\":\"{\\\"mid\\\":\\\"3d7da741d7d61c15\\\",\\\"sid\\\":\\\"e073f381-2134-469d-8b25-552c4727d264\\\",\\\"app_version\\\":\\\"1.0\\\",\\\"platform\\\":\\\"android\\\"}\",\"file\":{\"hidden\":false,\"nativePath\":\"file:///android_asset/Resources/windows/files/testfile.mkv\",\"writable\":false,\"executable\":false,\"parent\":null,\"readonly\":true,\"directoryListing\":[],\"size\":32211719,\"apiName\":\"Ti.Filesystem.File\",\"name\":\"/testfile.mkv\",\"symbolicLink\":false,\"bubbleParent\":true}}\r\n{code}", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-18T18:48:23.000+0000", "updated": "2014-06-18T18:48:23.000+0000" }, { "id": "309685", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "According to Jon, this is HTTP client.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-18T20:15:13.000+0000", "updated": "2014-06-18T20:15:13.000+0000" }, { "id": "309894", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~emerriman] to confirm this a regression.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-19T18:24:10.000+0000", "updated": "2014-06-19T18:24:10.000+0000" }, { "id": "310017", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on: \r\nMac OSX 10.9.3\r\nAppcelerator Studio, build: 3.2.3.201404181520, 3.3.0.201406171619\r\nTitanium SDK, build: 3.2.3.GA, 3.3.0.v20140619124113\r\nTitanium CLI, build: 3.2.3.GA, 3.3.0-rc\r\nAlloy: 1.3.1\r\nTi.Cloud: 3.2.2 and 3.2.3\r\n\r\nBroken pipe error occurred using the following combination:\r\nti.cloud 3.2.2 with SDK 3.2.3.GA: {color:red}ERROR{color}\r\nti.cloud 3.2.3 with SDK 3.2.3.GA: {color:red}ERROR{color}\r\nti.cloud 3.2.2 with SDK 3.3.0.v20140619124113: {color:red}ERROR{color}\r\nti.cloud 3.2.3 with SDK 3.3.0.v20140619124113: {color:red}ERROR{color}\r\n\r\n", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-19T20:46:12.000+0000", "updated": "2014-06-19T20:46:53.000+0000" }, { "id": "310052", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thank you. Not a regression, moving to 3.3.1.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-19T22:21:34.000+0000", "updated": "2014-06-19T22:21:34.000+0000" }, { "id": "310055", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-06-19T22:25:29.000+0000", "updated": "2014-06-19T22:44:55.000+0000" }, { "id": "310059", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~jalter], thoughts?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-19T22:42:13.000+0000", "updated": "2014-06-19T22:42:13.000+0000" }, { "id": "310067", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ingo] I'm guessing the devices are running out of memory... It looks like all of the file's data is being held in memory.\r\nAs far as NATIVESDK goes, iOS will be fixed once this is resolved on APSHTTPClient, on Android we will need to make some changes.\r\n\r\n[~wluu] Go ahead and create tickets for NATIVESDK iOS and Android... the iOS one will be dependent on this ticket's equivalent in iOS and will just involve updating the library.", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-19T23:32:38.000+0000", "updated": "2014-06-19T23:32:38.000+0000" }, { "id": "310086", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~jalter] Filed the NATIVESDK ticket for Android. \r\n\r\nAnd, I was not able to reproduce the iOS issue anymore; might've been a backend hiccup. I am getting this expected response when I set debug to true:\r\n{code}\r\nAPS Response: \r\n\r\n413 Request Entity Too Large\r\n\r\n\r\n\r\n

413 Request Entity Too Large

\r\n\r\n
nginx/1.2.9
\r\n\r\n\r\n\r\n\r\n{code}", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-06-20T01:16:27.000+0000", "updated": "2014-06-20T01:16:27.000+0000" }, { "id": "313335", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening:\r\nWindows 8.1\r\nAppcelerator Studio, build: 3.3.0.201407081443\r\nTitanium SDK, build: 3.3.0.v20140709184436\r\nTitanium CLI, build: 3.3.0-rc4\r\nAlloy: 1.4.0-rc4\r\nTi.Cloud: 3.2.3\r\n\r\nGetting the following errors:\r\n{code}\r\nE/TiHttpClient(17693): (TiHttpClient-3) [121174,211102] HTTP Error (javax.net.ssl.SSLException): Write error: ssl=0x727d4d98: I/O error during system call, Broken pipe\r\nE/TiHttpClient(17693): javax.net.ssl.SSLException: Write error: ssl=0x727d4d98: I/O error during system call, Broken pipe\r\nE/TiHttpClient(17693): at org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_write(Native Method)\r\nE/TiHttpClient(17693): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl$SSLOutputStream.write(OpenSSLSocketImpl.java:706)\r\nE/TiHttpClient(17693): at org.apache.http.impl.io.AbstractSessionOutputBuffer.flushBuffer(AbstractSessionOutputBuffer.java:87)\r\nE/TiHttpClient(17693): at org.apache.http.impl.io.AbstractSessionOutputBuffer.flush(AbstractSessionOutputBuffer.java:94)\r\nE/TiHttpClient(17693): at org.apache.http.impl.AbstractHttpClientConnection.doFlush(AbstractHttpClientConnection.java:169)\r\nE/TiHttpClient(17693): at org.apache.http.impl.SocketHttpClientConnection.close(SocketHttpClientConnection.java:192)\r\nE/TiHttpClient(17693): at org.apache.http.impl.conn.DefaultClientConnection.close(DefaultClientConnection.java:161)\r\nE/TiHttpClient(17693): at org.apache.http.impl.conn.AbstractPooledConnAdapter.close(AbstractPooledConnAdapter.java:158)\r\nE/TiHttpClient(17693): at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)\r\nE/TiHttpClient(17693): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:428)\r\nE/TiHttpClient(17693): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)\r\nE/TiHttpClient(17693): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:653)\r\nE/TiHttpClient(17693): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:637)\r\nE/TiHttpClient(17693): at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1291)\r\nE/TiHttpClient(17693): at java.lang.Thread.run(Thread.java:856)\r\n\r\nE/TiHttpClient(17693): (TiHttpClient-4) [120832,847167] HTTP Error (javax.net.ssl.SSLProtocolException): Write error: ssl=0x7276b710: Failure in SSL library, usually a protocol error\r\nE/TiHttpClient(17693): javax.net.ssl.SSLProtocolException: Write error: ssl=0x7276b710: Failure in SSL library, usually a protocol error\r\nE/TiHttpClient(17693): at org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_write(Native Method)\r\nE/TiHttpClient(17693): at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl$SSLOutputStream.write(OpenSSLSocketImpl.java:706)\r\nE/TiHttpClient(17693): at org.apache.http.impl.io.AbstractSessionOutputBuffer.flushBuffer(AbstractSessionOutputBuffer.java:87)\r\nE/TiHttpClient(17693): at org.apache.http.impl.io.AbstractSessionOutputBuffer.flush(AbstractSessionOutputBuffer.java:94)\r\nE/TiHttpClient(17693): at org.apache.http.impl.AbstractHttpClientConnection.doFlush(AbstractHttpClientConnection.java:169)\r\nE/TiHttpClient(17693): at org.apache.http.impl.SocketHttpClientConnection.close(SocketHttpClientConnection.java:192)\r\nE/TiHttpClient(17693): at org.apache.http.impl.conn.DefaultClientConnection.close(DefaultClientConnection.java:161)\r\nE/TiHttpClient(17693): at org.apache.http.impl.conn.AbstractPooledConnAdapter.close(AbstractPooledConnAdapter.java:158)\r\nE/TiHttpClient(17693): at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)\r\nE/TiHttpClient(17693): at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:428)\r\nE/TiHttpClient(17693): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:555)\r\nE/TiHttpClient(17693): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:653)\r\nE/TiHttpClient(17693): at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:637)\r\nE/TiHttpClient(17693): at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1291)\r\nE/TiHttpClient(17693): at java.lang.Thread.run(Thread.java:856)\r\n{code}", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-10T21:57:07.000+0000", "updated": "2014-07-10T21:57:07.000+0000" }, { "id": "313430", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Was this ever resolved? I still see it as \"open,\" not reopened. Reviewing the history, it does not appear to have been resolved.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-11T15:08:15.000+0000", "updated": "2014-07-11T15:08:15.000+0000" }, { "id": "396640", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~cbarber] the ticket (I believe) was that the API should be returning that the file size was too large. Instead, it was throwing an exception. So, a wierd case, but still valid AFAIK.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-09-20T13:14:40.000+0000", "updated": "2016-09-20T13:14:40.000+0000" }, { "id": "396646", "author": { "name": "wkong", "key": "wkong", "displayName": "Wei Kong", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Yes we have a limit of 25m", "updateAuthor": { "name": "wkong", "key": "wkong", "displayName": "Wei Kong", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-09-20T13:34:56.000+0000", "updated": "2016-09-20T13:34:56.000+0000" }, { "id": "396655", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I see now. The error was not properly handled. How unfortunate.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-09-20T14:23:30.000+0000", "updated": "2016-09-20T14:23:30.000+0000" } ], "maxResults": 18, "total": 18, "startAt": 0 } } }