New Android plugin - Wifi transfer

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

GeroZ
Junior Member
Junior Member
Posts: 20
Joined: 2005-01-13, 22:05 UTC

Post by *GeroZ »

Oooh – I got a new one:

Code: Select all

Rei.Fs.SimpleWebException: Unassumed PROPFIND response
Status: 200
   bei Rei.Fs.Webdav.WebdavFs.InnerGetInfo(Uri target, DepthType depth)
   bei Rei.Fs.Webdav.WebdavFs.GetInfoAndEntries(Uri targeturi)
   bei CarotDAV.CacheManager.GetInfoAndEntries(FsBase fs, Uri targeturi, Boolean enablecache)
   bei CarotDAV.MainForm.Fs_GetInfoAndInnerEntries(Uri uri, ResourceId id, ResourceId parentid, Boolean enablecache)
User avatar
Hacker
Moderator
Moderator
Posts: 13040
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

GeroZ,
A search for "cadaver" yields this:
"Via WIFI" WebDAV server not working

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

That's because myWebDAV server doesn't support the OPTIONS command. It reports that to the client in a valid response, but the client doesn't handle that.
Author of Total Commander
https://www.ghisler.com
GeroZ
Junior Member
Junior Member
Posts: 20
Joined: 2005-01-13, 22:05 UTC

Post by *GeroZ »

ghisler(Author) wrote:My WiFi plugin does implement a complete WebDAV server […].
ghisler(Author) wrote:That's because myWebDAV server doesn't support the OPTIONS command. It reports that to the client in a valid response, but the client doesn't handle that.
So – which one is it? ;-)

Never mind. Don't worry. Problem is: At the moment I can't even get TCMD/Win with the official WebDAV plugin get to work to connect over to my Android, bummer.

TCMD/Win is 9.12/32Bit, WebDAV plugin is 2.9. TCMD/Android is 2.80, WLAN Transfer plugin is 2.02.

*headscratch*

———————————

Constructive criticism: How about adding a plain WebDAV server to replace/assist WiFi transfers? … I imagine there should be existing Open Source implementations that could work with little work.
GeroZ
Junior Member
Junior Member
Posts: 20
Joined: 2005-01-13, 22:05 UTC

Post by *GeroZ »

Hacker wrote:GeroZ,
A search for "cadaver" yields this:
"Via WIFI" WebDAV server not working
Roman
Thanks!
GeroZ
Junior Member
Junior Member
Posts: 20
Joined: 2005-01-13, 22:05 UTC

Post by *GeroZ »

GeroZ wrote:Never mind. Don't worry. Problem is: At the moment I can't even get TCMD/Win with the official WebDAV plugin get to work to connect over to my Android, bummer.

TCMD/Win is 9.12/32Bit, WebDAV plugin is 2.9. TCMD/Android is 2.80, WLAN Transfer plugin is 2.02.
Correction: Works fine in a "real" Windows 10/1709 in VMware Fusion. Does not work in wine 2.0.3 running on macOS 10.13.2.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have now added support for the clients cadaver and nautilus! It was much harder than I thought - just adding the OPTIONS command wasn't sufficient. I had to implement "connection: keep-alive" on the server. This mode keeps the http connection open and handles multiple commands over the same connection.

You can get the beta from the play store or via direct download:

Play store (it can take a few hours until you get the beta):
https://www.ghisler.com/betawifi
Direct:
http://www.totalcommander.ch/beta/tcandroidwifi203b6.apk

Please test it and report any bugs here!
Author of Total Commander
https://www.ghisler.com
GeroZ
Junior Member
Junior Member
Posts: 20
Joined: 2005-01-13, 22:05 UTC

Post by *GeroZ »

Image: https://lh3.googleusercontent.com/b-zzrM_buWoLIfofJgt-81vD4oXNlsFrMFWSdStBHbjSTsRt-r_Nq57ccw52Zh4rh4WmgiyH3hPTd-0wbMZnjJ9F17d8wRtFIO-drbzaodDgj3lVh04zqks1V7EC-d79NJkyG4VRM4c=w853-h896-no

(Not sure if the image will come through, but you can always follow this link: https://photos.app.goo.gl/csWDXC3Pfotc3Ee12)

Halfway there: Both Mac Finder and Cadaver (Mac/Wine) connect via WebDAV to the phone.

However: Mac Finder shows an empty folder named "H", while cadaver simply reports "collection is empty".

… Windows 10 Explorer does not really connect via WebDAV: Pasting the WebDAV URL into the Explorer address bar (File Explorer, as opposed to Internet Explorer), it thinks about it for a moment – and then passes the URL over to the default browser (which is Chrome in my case).
GeroZ
Junior Member
Junior Member
Posts: 20
Joined: 2005-01-13, 22:05 UTC

Post by *GeroZ »

In addition to that:

TCMD/Win in regular Win10 connects through to the phone using the WebDAV plugin. There are a lot of "PROPFIND" and "207 Multi-Status" log entries and whatnot.

TCMD through wine-2.0.3/Mac reports (hand-transcribed log – couldn't find a way to copy/paste it):

Code: Select all

==============
Get dir: /2584
GET /2584/ HTTP/1.1
200 OK
Disconnected
GeroZ
Junior Member
Junior Member
Posts: 20
Joined: 2005-01-13, 22:05 UTC

Post by *GeroZ »

I stand corrected: The issues with Mac Finder and cadaver is either related to my Samsung Galaxy S7 or to Android 7 "Nougat".

I did the exact same experiment on my cheap-ass Lenovo A5500-F 8" tablet still running Android 4.4.2 – and both Finder and cadaver connect just fine.

… Only difference: cadaver is able to establish R/W access, while Mac Finder is limited to R/O. :-O Still no WebDAV access from Windows 10 Explorer.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks for your tests. I cannot help you with Mac finder, but maybe with the other problems you reported.

Please try beta 8:

Play store (it can take a few hours until you get the beta):
https://www.ghisler.com/betawifi
Direct:
http://www.totalcommander.ch/beta/tcandroidwifi203b8.apk

It works for me with Windows 10 Explorer, but has some limitations: If you get an error when trying to transfer a big file, please read this solution.

I have also updated the plugin to handle external media on Android 7 and 8, so it should work on you S7 now.

Please test it!
Author of Total Commander
https://www.ghisler.com
GeroZ
Junior Member
Junior Member
Posts: 20
Joined: 2005-01-13, 22:05 UTC

Post by *GeroZ »

Confirmed!

It's exactly as you said – so for the record and for other users who'd like to reproduce your and my findings with Beta 8 of the WiFi Transfer plugin for TCMD/Android:

(1) (My) Samsung Galaxy S7 with Android 7 "Nougat" works fine, including accessing the external SD card – after confirming access to it.

(2) Windows 10 Explorer connects nicely via WebDAV – read/write.

(3) So does cadaver (in v0.23.3 on console on macOS 10.13.2) – also read/write.

(4) Mac Finder successfully connects, but presents the share just read/only.

(5) Workaround: Use ForkLift (currently free on the Mac App Store – I remember paying a few bucks for it some time ago, might be a seasonal discount, IDK).
It's important to establish the WebDAV connection through ForkLift, not to re-use the one established by Finder – which both show up in ForkLift, so it's easy to confuse them.
Rule of thumb: A network connection established with ForkLift will be visible only in ForkLift and not in the surrounding Finder. — And it will be read/write.

—————————

Thank you so much, Christian! I wish you a happy new year – keep on the great work! … After having paid for TCMD/Win such a long time ago, is there a way to compensate you for TCMD/Android? Like an … I don't know … donations button?
denn
New Member
New Member
Posts: 1
Joined: 2018-01-03, 08:38 UTC

Post by *denn »

Thank you for the beta version!

Whit it I now can upload files using Dolphin (KDE) to the internal memory.

But uploading to the SD-card (R/W) dosn't work. I always get a "Connection Error". But that also happens using the Webpage. Download works.
GeroZ
Junior Member
Junior Member
Posts: 20
Joined: 2005-01-13, 22:05 UTC

Post by *GeroZ »

Hold on – internal beta-testing, new beta is imminent. ;-)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48005
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Beta 9 is available now!

Play store (it can take a few hours until you get the latest beta):
https://www.ghisler.com/betawifi
Direct:
http://www.totalcommander.ch/beta/tcandroidwifi203b9.apk

What's new?
- Support for Mac Finder client
- Support for accents in file names in some clients
- Server: Send via LAN in addition to WLAN

Many thanks to GeroZ for the help debugging these problems!
Author of Total Commander
https://www.ghisler.com
Post Reply