Bug 1816330 Comment 11 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Thanks for your log

Here's the key point log
```
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: Unable to complete download for 87389c0f-4e7c-498a-ab41-0503b14db97d marked as FAILED
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: java.io.FileNotFoundException: /storage/3131-3835/Download/Hero of Aethric | Classic RPG_1.1.28_Apkpure.xapk (Invalid argument)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at java.io.FileOutputStream.open0(Native Method)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at java.io.FileOutputStream.open(FileOutputStream.java:287)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at java.io.FileOutputStream.<init>(FileOutputStream.java:223)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at mozilla.components.feature.downloads.AbstractFetchDownloadService$performDownload$1.invoke(AbstractFetchDownloadService.kt:401)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at mozilla.components.concept.fetch.Response$Body.useStream(Response.kt:8)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at mozilla.components.feature.downloads.AbstractFetchDownloadService.performDownload$feature_downloads_release(AbstractFetchDownloadService.kt:241)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at mozilla.components.feature.downloads.AbstractFetchDownloadService.startDownloadJob$feature_downloads_release(AbstractFetchDownloadService.kt:36)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at mozilla.components.feature.downloads.AbstractFetchDownloadService$handleDownloadIntent$1.invokeSuspend(AbstractFetchDownloadService.kt:8)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:9)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:107)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:13)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:3)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:79)
```


It looks like "|" ( vertical bar ) in filename is treated as pipe in linux , hence the OS perhaps refuses to create file .

There're some discussions in [StackOverflow](https://stackoverflow.com/questions/23960885/java-io-filenotfoundexception-cant-create-a-file-because-of-some-error-in-file) shows that this may device related , some other devices allow this char in filename.

There's also possibly related ticket https://bugzilla.mozilla.org/show_bug.cgi?id=1815613
Thanks for your log

Here's the key point log
```
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: Unable to complete download for 87389c0f-4e7c-498a-ab41-0503b14db97d marked as FAILED
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: java.io.FileNotFoundException: /storage/3131-3835/Download/Hero of Aethric | Classic RPG_1.1.28_Apkpure.xapk (Invalid argument)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at java.io.FileOutputStream.open0(Native Method)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at java.io.FileOutputStream.open(FileOutputStream.java:287)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at java.io.FileOutputStream.<init>(FileOutputStream.java:223)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at mozilla.components.feature.downloads.AbstractFetchDownloadService$performDownload$1.invoke(AbstractFetchDownloadService.kt:401)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at mozilla.components.concept.fetch.Response$Body.useStream(Response.kt:8)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at mozilla.components.feature.downloads.AbstractFetchDownloadService.performDownload$feature_downloads_release(AbstractFetchDownloadService.kt:241)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at mozilla.components.feature.downloads.AbstractFetchDownloadService.startDownloadJob$feature_downloads_release(AbstractFetchDownloadService.kt:36)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at mozilla.components.feature.downloads.AbstractFetchDownloadService$handleDownloadIntent$1.invokeSuspend(AbstractFetchDownloadService.kt:8)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:9)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:107)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:13)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:3)
06-20 20:27:03.674  3024 15788 E AbstractFetchDownloadService: 	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:79)
```


It looks like "|" ( vertical bar ) in filename is treated as pipe in linux , hence the OS perhaps refuses to create file .

There're some discussions in [StackOverflow](https://stackoverflow.com/questions/23960885/java-io-filenotfoundexception-cant-create-a-file-because-of-some-error-in-file) shows that this may device related , ~~some other devices allow this char in filename.~~ some other devices automatically change `|` to `_`.

There's also possibly related ticket https://bugzilla.mozilla.org/show_bug.cgi?id=1815613

Back to Bug 1816330 Comment 11