Bug 365731 - SFTP: Error while try to manage files from computer on mobile
Summary: SFTP: Error while try to manage files from computer on mobile
Status: RESOLVED FIXED
Alias: None
Product: kdeconnect
Classification: Applications
Component: android-application (show other bugs)
Version: unspecified
Platform: Android Android 7.x
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-16 03:14 UTC by Roman Akhmadullin
Modified: 2019-03-08 14:57 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
syslog (2.29 KB, text/plain)
2016-07-25 20:27 UTC, Sinka Péter
Details
log with key tape problem (3.50 KB, text/plain)
2018-11-27 07:16 UTC, milan007
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Akhmadullin 2016-07-16 03:14:02 UTC
Error message:

Invalid object path: /modules/kdeconnect/devices/5.8.179.0/sftp

Ubuntu 16.04
KDE Plasma: 5.6.5
KDE Frameworks: 5.23.0
Qt: 5.5.1

Reproducible: Always

Steps to Reproduce:
1. Connect android device to computer
2. Make KDECOnnect widget on desktop
3. Click on "folder" icon
4. Get error message in Dolphin application
Comment 1 Sinka Péter 2016-07-25 20:27:57 UTC
Created attachment 100302 [details]
syslog

The IP-adress of phone is wrong, if I change it  , and run the sshfs command in terminal, the phone mounts.
Comment 2 Andy Holmes 2018-03-20 02:47:00 UTC
This bug was recently reported by a user of GSConnect[1] where the incorrect IP address was reported by the Android app. The address reported by the app was in the Class A range (eg. 10.0.0.0), where the device's real address was in the more reasonable Class C range (eg. 192.0.0.0).

Probably this is a regression or re-occurance of bug #337685 which was fixed[2] by ignoring "rmnet" connections. FWIW, the reporter also seems to be using a Xiaomi device like the user in comment 1.

I'm just going to fix this in GSConnect by pulling the address from the active TLS connection since I'm unaware of there ever being two different IPs used to communicate with the same device, and the IP in the packet sent by the app can just be ignored.

[1]: https://github.com/andyholmes/gnome-shell-extension-gsconnect/issues/66
[2]: https://github.com/KDE/kdeconnect-android/commit/c5022358de3a5c3f6bbde44915ae48702cee719d#diff-c1d48f8ae6c815183fccb4b612c5cefa
Comment 3 milan007 2018-11-27 07:13:12 UTC
after update to 1.1 I also cannot connect to mobile filesystem. ( opensuse leap 42.3 and 15.0 )
/var/log/message contains some hint, but I'm not able anything to repair problem. I dont know what to do. 
Messages says there are no matching key type. How to set up right key type ? Or this is not problem ?
Comment 4 milan007 2018-11-27 07:16:16 UTC
Created attachment 116530 [details]
log with key tape problem

log with key tape problem
Comment 5 Erik Duisters 2019-03-08 14:57:35 UTC
Fixed by commit 25b86c6c7f9f73c7186244612786edf120cf4860