{ "id": "175551", "key": "TIMOB-28146", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "21052", "description": "", "name": "Release 9.3.0", "archived": false, "released": true, "releaseDate": "2020-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2020-10-22T22:23:16.000+0000", "created": "2020-09-18T17:21:23.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "engSchedule", "file", "filesystem", "parity" ], "versions": [], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2020-10-22T22:23:16.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": "This one shows up in our unit tests for Ti.Filesystem.File.rename. If we attempt to rename a file by passing in an absolute path for the destination (as a sibling of the original file path), the rename fails.\r\n\r\nSee: https://github.com/appcelerator/titanium_mobile/blob/master/tests/Resources/ti.filesystem.file.test.js#L619-L642\r\n\r\nI assume the issue is related to the underlying code which constructs the destination file: https://github.com/appcelerator/titanium_mobile/blob/master/android/titanium/src/java/org/appcelerator/titanium/io/TiBaseFile.java#L359-L360", "attachment": [], "flagged": false, "summary": "Android: Ti.Filesystem.File rename() should support an absolute path in same directory", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "456942", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~cwilliams], but should [rename()|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Filesystem.File-method-rename] accept an absolute path? Our docs for argument {{newname}} suggests it should only accept a file *+name+* and not a file *+path+*. And we already have a [move()|https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Filesystem.File-method-move] method with an appropriately named {{newpath}} argument. Granted, natively a file rename/move is the same thing, but our Titanium APIs makes a distinction.\r\n\r\nI don't mind us adding support, but since we correctly follow the docs, I would say this is an \"improvement\" request and not a \"bug\".", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-09-18T18:54:40.000+0000", "updated": "2020-09-18T18:54:40.000+0000" }, { "id": "457110", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/12143", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-01T07:41:21.000+0000", "updated": "2020-10-01T07:41:21.000+0000" }, { "id": "457203", "author": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "body": "FR Passed for this part of the PR.", "updateAuthor": { "name": "ssaddique", "key": "ssaddique", "displayName": "Sohail Saddique", "active": true, "timeZone": "Europe/London" }, "created": "2020-10-08T09:59:45.000+0000", "updated": "2020-10-08T13:52:10.000+0000" }, { "id": "457315", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with SDK 9.3.0.v20201022111908.\r\nClosing.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-10-22T22:23:11.000+0000", "updated": "2020-10-22T22:23:11.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }