https://bugs.kde.org/show_bug.cgi?id=427298
Bug ID: 427298
Summary: Permission error when sending files
Product: kdeconnect
Version: unspecified
Platform: Other
OS: Android 10.x
Status: REPORTED
Severity: normal
Priority: NOR
Component: android-application
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
Files can't be sent to the android app of kdeconnect because of permission
error
STEPS TO REPRODUCE
0. double check the storage permission is granted to kdeconnect
1. Send a file from the computer
OBSERVED RESULT
2. a notification tells the file cannot be received
logcat:
10-03 17:47:37.294 3259 4711 W DocumentFile: Failed to createFile:
java.io.IOException: Permission denied
10-03 17:47:37.295 3259 4711 E Shareplugin: Error receiving file
10-03 17:47:37.295 3259 4711 E Shareplugin: java.lang.RuntimeException:
Impossible de créer le fichier avantaprès
10-03 17:47:37.295 3259 4711 E Shareplugin: at
org.kde.kdeconnect.Plugins.SharePlugin.CompositeReceiveFileJob.getDocumentFileFor(CompositeReceiveFileJob.java:280)
10-03 17:47:37.295 3259 4711 E Shareplugin: at
org.kde.kdeconnect.Plugins.SharePlugin.CompositeReceiveFileJob.run(CompositeReceiveFileJob.java:152)
10-03 17:47:37.295 3259 4711 E Shareplugin: at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
10-03 17:47:37.295 3259 4711 E Shareplugin: at
java.util.concurrent.FutureTask.run(FutureTask.java:266)
10-03 17:47:37.295 3259 4711 E Shareplugin: at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
10-03 17:47:37.295 3259 4711 E Shareplugin: at
java.util.concurrent.ThreadPoolExecutor$Wor
EXPECTED RESULT
The file is written in the Downloads folder
SOFTWARE/OS VERSIONS
NixOS 20.09, kdeconnect 1.3.5
LineageOS 17.1, kdeconnect 1.14.2 from f-droid
ADDITIONAL INFORMATION
Browsing the phone's file from the computer also does not work
10-03 17:47:04.621 3259 7027 E KDE/Device:
java.lang.IllegalArgumentException: UserAuthFactories not set
10-03 17:47:04.621 3259 7027 E KDE/Device: at
org.apache.sshd.SshServer.checkConfig(SshServer.java:227)
10-03 17:47:04.621 3259 7027 E KDE/Device: at
org.apache.sshd.SshServer.start(SshServer.java:273)
10-03 17:47:04.621 3259 7027 E KDE/Device: at
org.kde.kdeconnect.Plugins.SftpPlugin.SimpleSftpServer.start(SimpleSftpServer.java:115)
10-03 17:47:04.621 3259 7027 E KDE/Device: at
org.kde.kdeconnect.Plugins.SftpPlugin.SftpPlugin.onPacketReceived(SftpPlugin.java:141)
10-03 17:47:04.621 3259 7027 E KDE/Device: at
org.kde.kdeconnect.Device.onPacketReceived(Device.java:572)
10-03 17:47:04.621 3259 7027 E KDE/Device: at
org.kde.kdeconnect.Backends.BaseLink.packageReceived(BaseLink.java:84)
10-03 17:47:04.621 3259 7027 E KDE/Device: at
org.kde.kdeconnect.Backends.LanBackend.LanLink.receivedNetworkPacket(LanLink.java:261)
10-03 17:47:04.621 3259 7027 E KDE/Device: at
org.kde.kdeconnect.Backends.LanBackend.LanLink.lambda$reset$0$LanLink(LanLink.java:110)
10-03 17:47:04.621 3259 7027 E KDE/Device: at
org.kde.kdeconnect.Backends.LanBackend.-$$Lambda$LanLink$TabvaCXA5qL_bcJDmIELWusNThw.run(Unknown
Source:4)
10-03 17:47:04.621 3259 7027 E KDE/Device: at
java.lang.Thread.run(Thread.java:919)
Sending a file from the phone to the computer works great.
--
You are receiving this mail because:
You are watching all bug changes.