CANNOT_CREATE_FILE_IN_TARGET when attempting to save on external drive
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- mobile-dev
Research direction
Start by locating and reading DocumentFileUtils.moveFileTo, then reproduce the reported failure using a folder selected with ACTION_OPEN_DOCUMENT_TREE on an external drive. Compare with a move to an internal folder and check whether the external target is readable and writable. Done when moving to the external folder succeeds or the operation reports the underlying failure clearly.
Written by the indexing model from the issue text.
Description
Library version: 1.5.1
OS version: [Android 11]
Device model: [Samsung Galaxy A8]
Describe the bug
When invoking DocumentFileUtils.MoveFileTo targeting a folder stored on an external drive (USB SSD in my example) the movement fails.
If the target folder is an internal folder, the move succeeds
Full file permission has been granted, the external folder has been selected using OPEN_DOCUMENT_TREE
To Reproduce
-
give application full file permissions
-
select target folder using ACTION_OPEN_DOCUMENT_TREE
-
select file that will be moved
-
start background thread
-
check file can be read and location can be written to
DocumentFileUtils.moveFileTo([any file], this, [Folder on external drive], null, new FileCallBack(){}
Stacktrace
[If applicable]
- Dominant language
- Kotlin
- Stars
- 867
- Forks
- 103
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from anggrayudi/SimpleStorage
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
anggrayudi/SimpleStorage#160 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
anggrayudi/SimpleStorage#159 ·
-
bug unreproducible
Difficulty 4/5 3-5 days Newbie friendliness 30/100
anggrayudi/SimpleStorage#107 · 10 comments ·
-
bug wontfix
Difficulty 4/5 3-5 days Newbie friendliness 42/100
anggrayudi/SimpleStorage#103 · 7 comments ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 35/100
anggrayudi/SimpleStorage#94 · 8 comments ·
All issues in anggrayudi/SimpleStorage
Similar issues
-
cr:missing-repro cr:platform:android missing-repro platform:android
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
software-mansion/react-native-screens#4950 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
software-mansion/enriched-markdown#1033 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day