{ "id": "104647", "key": "TIMOB-11689", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-04-30T16:59:58.000+0000", "created": "2012-11-07T18:50:23.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "exalture", "parity" ], "versions": [ { "id": "14137", "description": "Release 2.1.3", "name": "Release 2.1.3", "archived": true, "released": true, "releaseDate": "2012-10-03" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2017-03-20T20:51:42.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": "The nativePath property and getNativePath() method for directory objects return differently on Android and iOS.\r\nSteps to reproduce:\r\n1. Load the below app.js\r\n2. Test this on both android and iOS\r\n\r\nExpected Result: The path should be the same on both.\r\n\r\nActual Result: It is different on both.\r\n\r\napp.js:\r\n{code}\r\n\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win1 = Titanium.UI.createWindow({ \r\n title:'Tab 1',\r\n backgroundColor:'#fff',\r\n layout: 'vertical',\r\n});\r\nvar tab1 = Titanium.UI.createTab({ \r\n icon:'KS_nav_views.png',\r\n title:'Tab 1',\r\n window:win1\r\n});\r\n\r\nvar newDir = Titanium.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory, \"testdirectory\");\r\nnewDir.createDirectory();\r\n\r\nvar npPropertyLabel = Ti.UI.createLabel({\r\n\theight: Ti.UI.SIZE,\r\n\twidth: Ti.UI.SIZE,\r\n\ttext: 'Native Path Property: ' + newDir.nativePath,\r\n\tcolor: 'red',\r\n});\r\n\r\nvar npMethodLabel = Ti.UI.createLabel({\r\n\theight: Ti.UI.SIZE,\r\n\twidth: Ti.UI.SIZE,\r\n\ttext: 'Native Path Method: ' + newDir.getNativePath(),\r\n\tcolor: 'red',\r\n});\r\n\r\nvar namePropertyLabel = Ti.UI.createLabel({\r\n\theight: Ti.UI.SIZE,\r\n\twidth: Ti.UI.SIZE,\r\n\ttext: 'Name Property: ' + newDir.name,\r\n\tcolor: 'black',\r\n});\r\n\r\nvar nameMethodLabel = Ti.UI.createLabel({\r\n\theight: Ti.UI.SIZE,\r\n\twidth: Ti.UI.SIZE,\r\n\ttext: 'Name Method: ' + newDir.getName(),\r\n\tcolor: 'black',\r\n});\r\n\r\n\r\nwin1.add(npPropertyLabel);\r\nwin1.add(npMethodLabel);\r\nwin1.add(namePropertyLabel);\r\nwin1.add(nameMethodLabel);\r\n\r\n//\r\n// add tabs\r\n//\r\ntabGroup.addTab(tab1); \r\n\r\n\r\n// open tab group\r\ntabGroup.open();\r\n{code}", "attachment": [ { "id": "36510", "filename": "iOS Simulator Screen shot Mar 21, 2013 2.14.19 PM.png", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-21T08:58:46.000+0000", "size": 47049, "mimeType": "image/png" }, { "id": "36511", "filename": "Screenshot_2013-03-21-14-15-48.png", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-21T08:58:46.000+0000", "size": 29146, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Ti.Filesystem directory object: nativePath and getNetivePath() return different results on iOS and Android. Parity issue.", "creator": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "aakkinepally", "key": "aakkinepally", "displayName": "Amuktha Akkinepally", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android 2.2, Android 2.1.3, Ti SDK 2.1.3", "comment": { "comments": [ { "id": "243364", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces \r\n\r\nTested with\r\n\r\nTitanium Studio, build: 3.0.1.201212181159\r\nTitanium SDK version: 3.1.0 (03/11/13 15:43 0c88429)\r\nTitanium SDK version: 3.0.2 (02/07/13 16:46 a4def81)\r\nDevice: Samsung galaxy s duos Android version: 4.0.4\r\niOS iPhone Simulator: iOS SDK version: 6.0\r\n\r\njithinpv", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-21T08:48:14.000+0000", "updated": "2013-03-21T08:51:06.000+0000" }, { "id": "249568", "author": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Native path is platform specific and will be different on IOS and Android", "updateAuthor": { "name": "sunila", "key": "sunila", "displayName": "Sunila", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-04-30T16:59:58.000+0000", "updated": "2013-04-30T16:59:58.000+0000" }, { "id": "413971", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-20T20:51:42.000+0000", "updated": "2017-03-20T20:51:42.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }