{ "id": "62967", "key": "TIMOB-2335", "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": "11235", "name": "Release 1.6.0 M02", "archived": true, "released": true, "releaseDate": "2010-12-27" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:58:48.000+0000", "created": "2011-04-15T03:17:00.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "apidoc", "defect", "filesystem.spaceavailable", "ios", "release-1.6.0" ], "versions": [], "issuelinks": [], "assignee": { "name": "jtobias", "key": "jtobias", "displayName": "jtobias", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:58:48.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": "{html}

ENVIRONMENT:

\n

[From titanium_mobile/dist/os x/…/version.txt]\nversion=1.5.0
\ntimestamp=11/12/10 10:37
\ngithash=937631f

\n

STEPS TO REPRODUCE:
\n1) Pull down the latest titanium_mobile from github
\n2) Note …/apidoc/ File.tdoc says:
\nspaceAvailable: return boolean to indicate if the path has space\navailable for storage
\n3) Note implementation (code in TiFilesystemProxy.m) returns TRUE\nif space available, FALSE if not

\n

SUGGESTED FIX:
\nReturn an integer (unsigned, 64-bit?) that shows the number of\nbytes available; use 0 for none.
\n(Easy to do per code, and the android 2.0 tdoc apparently already\nsays this: platform deviation?)

\n

ISSUES:
\n• How to sync up with Android folks on the new \"spec\" created\nfrom comparing iOS and Android \"realities\"
\n• Thomas helped me write this per QA \"Best Practices\" but RFC\nis always welcome on how to improve the first of many LH\ntickets
\n(Request for Comments)

\n

ISSUES:

\n

I don't have Lighthouse permissions / access to set \"Who's\nresponsible\"

{html}", "attachment": [], "flagged": false, "summary": "iOS: Filesystem method spaceAvailable should return bytes available instead of a boolean [API SCRUB]", "creator": { "name": "jtobias", "key": "jtobias", "displayName": "jtobias", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jtobias", "key": "jtobias", "displayName": "jtobias", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128189", "author": { "name": "jtobias", "key": "jtobias", "displayName": "jtobias", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Per Ralf, milestone past to 1.6.0 to not interrupt 1.5.0, and\nusing existing \"apidoc\" keyword

{html}", "updateAuthor": { "name": "jtobias", "key": "jtobias", "displayName": "jtobias", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:17:01.000+0000", "updated": "2011-04-15T03:17:01.000+0000" }, { "id": "128190", "author": { "name": "jtobias", "key": "jtobias", "displayName": "jtobias", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

A drillbit test:\nvalueOf(file.spaceAvailable()).shouldBeNumber()

{html}", "updateAuthor": { "name": "jtobias", "key": "jtobias", "displayName": "jtobias", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:17:01.000+0000", "updated": "2011-04-15T03:17:01.000+0000" }, { "id": "128191", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [1ddee72f604a27afa835aa53cc3ddc68f71fd538])\n[#2335 state:fixed-in-qa] Simple oneliner is\nsimple. \nhttps://github.com/appcelerator/titanium_mobile/commit/1ddee72f604a...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:17:02.000+0000", "updated": "2011-04-15T03:17:02.000+0000" }, { "id": "128192", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Tested via KS: Platform->Filesystem->check output

\n

Tested sim 4.2.1 release, iPod 3GT 4.2.1 release.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:17:02.000+0000", "updated": "2011-04-15T03:17:02.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }