{ "id": "62790", "key": "TIMOB-2158", "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": "11333", "description": "Mobile 1.8.0 M01", "name": "Sprint 2011-22", "archived": true, "released": true, "releaseDate": "2011-06-06" } ], "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": "2011-07-07T11:55:11.000+0000", "created": "2011-04-15T03:12:17.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "android_refactor", "defect", "file", "regression", "system" ], "versions": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "issuelinks": [], "assignee": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "updated": "2011-07-07T11:56:19.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": "{html}

1.5.0.70ce98 g2 running 2.2, G1 running 1.6, sim 2.2.

\n

1.Platform>File test

\n

results:runtime errors, followed by a crash

\n

I/TiAPI (16627): (kroll$81) [84,5659266] Resources Directory\n:app://
\nI/TiAPI (16627): (kroll$81) [1,5659267] Temp Directory\n:undefined
\nI/TiAPI (16627): (kroll$81) [3,5659270] Application Directory\n:null
\nI/TiAPI (16627): (kroll$81) [1,5659271] Application Data Directory\n:appdata-private://
\nI/TiAPI (16627): (kroll$81) [0,5659271] Application Support\nDirectory :undefined
\nI/TiAPI (16627): (kroll$81) [1,5659272] External Storage Available\n:undefined
\nI/TiAPI (16627): (kroll$81) [8,5659280] Separator :/
\nI/TiAPI (16627): (kroll$81) [2,5659282] Line Ending :
\nI/TiAPI (16627): (kroll$81) [7,5659289] file = [object TiFile]
\nI/TiAPI (16627): (kroll$81) [3,5659292] contents blob object =\nHello World. this is a filesystem read test.
\nI/TiAPI (16627): (kroll$81) [6,5659298] contents = Hello World.\nthis is a filesystem read test.
\nI/TiAPI (16627): (kroll$81) [1,5659299] mime type = text/plain
\nI/TiAPI (16627): (kroll$81) [2,5659301] nativePath =\nfile:///android_asset/Resources/text.txt
\nI/TiAPI (16627): (kroll$81) [3,5659304] exists = true
\nI/TiAPI (16627): (kroll$81) [2,5659306] size = 44
\nI/TiAPI (16627): (kroll$81) [3,5659309] readonly = true
\nI/TiAPI (16627): (kroll$81) [1,5659310] symbolicLink = false
\nI/TiAPI (16627): (kroll$81) [1,5659311] executable = false
\nI/TiAPI (16627): (kroll$81) [6,5659317] hidden = false
\nI/TiAPI (16627): (kroll$81) [1,5659318] writeable = undefined
\nI/TiAPI (16627): (kroll$81) [1,5659319] name = text.txt
\nI/TiAPI (16627): (kroll$81) [2,5659321] extension = txt
\nI/TiAPI (16627): (kroll$81) [1,5659322] resolve =\nfile:///android_asset/Resources/text.txt
\nW/TiBaseFile(16627): (kroll$81) [3,5659325] Method is not supported\norg.appcelerator.titanium.io.TiResourceFile : createTimestamp
\nI/TiAPI (16627): (kroll$81) [7,5659332] created = Wed Dec 31 1969\n16:00:00 GMT-0800 (PST)
\nI/TiAPI (16627): (kroll$81) [84,5659416] directoryListing =\napp.js,app.jss,comic_zine_ot.otf,common.jss,cricket.wav,default_app_logo.png,echo.js,examples,images,jquery-1.3.2.js,label_basic.jss,main_windows,movie.mp4,my_js_include.js,my_js_include_2.js,paradise_lost.txt,params.js,pop.caf,test.css,testdb.db,text.txt,todo.js,welcome.js
\nW/TiBaseFile(16627): (kroll$81) [2,5659418] Method is not supported\norg.appcelerator.titanium.io.TiResourceFile : getParent
\nI/TiAPI (16627): (kroll$81) [0,5659418] getParent = null
\nI/TiAPI (16627): (kroll$81) [7,5659425] spaceAvailable = 0
\nE/KrollMethod(16627): (kroll$81) [6,5659431] Exception calling\nkroll method createDirectory
\nE/KrollMethod(16627): java.lang.IllegalArgumentException: Expected\n1 arguments for createDirectory, got 0
\nE/KrollMethod(16627): at\nti.modules.titanium.filesystem.FileProxyBindingGen$30.invoke(FileProxyBindingGen.java:822)
\nE/KrollMethod(16627): at\norg.appcelerator.kroll.KrollMethod.call(KrollMethod.java:46)
\nE/KrollMethod(16627): at\norg.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1711)
\nE/KrollMethod(16627): at\norg.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
\nE/KrollMethod(16627): at\norg.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
\nE/KrollMethod(16627): at\norg.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
\nE/KrollMethod(16627): at\norg.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)
\nE/KrollMethod(16627): at\norg.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
\nE/KrollMethod(16627): at\norg.mozilla.javascript.Context.evaluateReader(Context.java:1142)
\nE/KrollMethod(16627): at\norg.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:193)
\nE/KrollMethod(16627): at\norg.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:218)
\nE/KrollMethod(16627): at\norg.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:115)
\nE/KrollMethod(16627): at\nandroid.os.Handler.dispatchMessage(Handler.java:95)
\nE/KrollMethod(16627): at\nandroid.os.Looper.loop(Looper.java:123)
\nE/KrollMethod(16627): at\norg.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:73)
\nE/KrollContext(16627): (kroll$81) [7,5659438] Error evaluating\nsource: Wrapped java.lang.IllegalArgumentException: Expected 1\narguments for createDirectory, got 0\n(app://examples/filesystem.js#39)
\nE/KrollContext(16627): org.mozilla.javascript.WrappedException:\nWrapped java.lang.IllegalArgumentException: Expected 1 arguments\nfor createDirectory, got 0 (app://examples/filesystem.js#39)
\nE/KrollContext(16627): at\norg.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1781)
\nE/KrollContext(16627): at\norg.appcelerator.kroll.KrollMethod.call(KrollMethod.java:77)
\nE/KrollContext(16627): at\norg.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1711)
\nE/KrollContext(16627): at\nscript(app://examples/filesystem.js:39)
\nE/KrollContext(16627): at\norg.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
\nE/KrollContext(16627): at\norg.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
\nE/KrollContext(16627): at\norg.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
\nE/KrollContext(16627): at\norg.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)
\nE/KrollContext(16627): at\norg.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
\nE/KrollContext(16627): at\norg.mozilla.javascript.Context.evaluateReader(Context.java:1142)
\nE/KrollContext(16627): at\norg.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:193)
\nE/KrollContext(16627): at\norg.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:218)
\nE/KrollContext(16627): at\norg.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:115)
\nE/KrollContext(16627): at\nandroid.os.Handler.dispatchMessage(Handler.java:95)
\nE/KrollContext(16627): at\nandroid.os.Looper.loop(Looper.java:123)
\nE/KrollContext(16627): at\norg.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:73)
\nE/KrollContext(16627): Caused by:\njava.lang.IllegalArgumentException: Expected 1 arguments for\ncreateDirectory, got 0
\nE/KrollContext(16627): at\nti.modules.titanium.filesystem.FileProxyBindingGen$30.invoke(FileProxyBindingGen.java:822)
\nE/KrollContext(16627): at\norg.appcelerator.kroll.KrollMethod.call(KrollMethod.java:46)
\nE/KrollContext(16627): ... 13 more

{html}", "attachment": [], "flagged": false, "summary": "Android: File System run time errors (createTimeStamp not supported) + crash ", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "134628", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "Spoke with iOS lead and agreed that it acceptable for iOS to return timestamp for Resource files while Android doesn't due to platform differences.", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2011-06-01T08:46:48.000+0000", "updated": "2011-06-01T08:46:48.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }