New beta plugin: WebDAV (WebFolders)

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, sheep, Hacker, Stefan2

Post Reply
pplupo
Junior Member
Junior Member
Posts: 91
Joined: 2019-12-02, 16:26 UTC
Location: Canada
Contact:

Re: New beta plugin: WebDAV (WebFolders)

Post by *pplupo »

VimWei wrote: 2021-06-01, 04:24 UTC
petermad wrote: 2021-06-01, 01:56 UTC 2VimWei
I Can’t download them. Is it just me?
I have no problems downloading the two files.
I can't download them by Chrome directly, but can download by Free Download Manager.
Right click, open in incognito.
VimWei
Junior Member
Junior Member
Posts: 19
Joined: 2021-05-23, 11:23 UTC

Re: New beta plugin: WebDAV (WebFolders)

Post by *VimWei »

ghisler(Author) wrote: 2021-06-01, 09:57 UTC Chrome may be configured to not accept http downloads. Does it work with https?
Yes, it does.
User avatar
DrShark
Power Member
Power Member
Posts: 1869
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262

Re: New beta plugin: WebDAV (WebFolders)

Post by *DrShark »

It seems there is an issue with created connection to Android devices which share files using WiFi Transfer plugin.

To access them using WebDAV plugin, the connection URL looks like this:
http://555.555.5.5:5.5.5.5/1234
where http://555.555.5.5:5.5.5.5 are some digits of the device IP:Port, and 1234 are some random "access code" digits to make connection url unique.

So WiFi-WLAN plugin changes that "access code" part of url.

When this happens, and user tries to connect with correct IP:Port but wrong "access code" part,
after entering the connection TC enters the location:
///WebDAV/<Connection name>/<old access code>/
but the /<old access code>/ is never a part of current directory path - TC only indicate entering there in FTP log list window.
There Total Commander shows pseudo file with a name "The URL has changed, please update the configuration!".
In the log it looks like:

Code: Select all

Get dir: /1234
PROPFIND /1234 HTTP/1.1
207 Multi-Status
=================
File receive: /1234\The URL has changed, please update the configuration!
GET /1234/The%20URL%20has%20changed,%20please%20update%20the%20configuration! HTTP/1.1
Error: 410 Gone: The server path has changed, please use the new URL!
Now if to open \\\WebDAV\ and there to change the url of our connection by changing there the access code to new one, say 5678, and to try entering \\\WebDAV\<Connection name>\ again, WebDAV plugin will stil try entering the URL with old access code. In the log it will look like:

Code: Select all

CONNECT \<Connection name>
=================
Get dir: /1234
PROPFIND /1234 HTTP/1.1
207 Multi-Status
=================
Get dir: /1234
PROPFIND /1234 HTTP/1.1
207 Multi-Status
=================
Get dir: /1234
PROPFIND /1234 HTTP/1.1
207 Multi-Status
=================
Get dir: /1234
PROPFIND /1234 HTTP/1.1
207 Multi-Status
If to execute the command:
cd \\\WebDAV\<Connection name>\5678
or
cd \\\WebDAV\<Connection name>/5678
Total Commander will try to go to:
\\\WebDAV\<Connection name>\4736\5678

In the log it looks like:

Code: Select all

=================
Get dir: /1234\5678
PROPFIND /1234/5678 HTTP/1.1
Error: 410 Gone: The server path has changed, please use the new URL!
=================
Get dir: /1234/5678
PROPFIND /1234/5678 HTTP/1.1
Error: 410 Gone: The server path has changed, please use the new URL!
To finally connect to the correct URL which is set in the connection properties it seems all the current connections must be disconnected (Ctrl+Shift+Enter) - after this entering \\\WebDAV\<Connection name>\ will make the plugin go to correct location:

Code: Select all

Disconnected
CONNECT \<Connection name>
=================
Get dir: /5678
PROPFIND /5678 HTTP/1.1
207 Multi-Status
It would be nice if WebDAV plugin could recognize that user has changed the URL in connection properties and would use the correct access code set there immediately without a need to disconnect/reconnect.
Android 4.3.1 no root, kernel 08.09.2016; Win7 Home Premium SP1 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 41868
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New beta plugin: WebDAV (WebFolders)

Post by *ghisler(Author) »

You need to disconnect and then change the connection in the WebDAV plugin.

Btw, if you want to store connections, you should set a user name and password. Then you can use a fixed URL which will not change regularly.
Author of Total Commander
http://www.ghisler.com
User avatar
DrShark
Power Member
Power Member
Posts: 1869
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262

Re: New beta plugin: WebDAV (WebFolders)

Post by *DrShark »

ghisler(Author) wrote: 2021-09-07, 13:47 UTCYou need to disconnect and then change the connection in the WebDAV plugin.
That's the problem I was writing about. An error mentions only second part of solution:
Error 410: wrote:The URL has changed, please update the configuration!
It doesn't say that disconnection+re-connection is required to make plugin read updated URL in its configuration!

I think plugin either should immediately use changed URL after user clicks OK in "Connect to WebDAV" configuration dialog, or an error message should make it clear disconnection+re-connection is also required to apply updated configuration.
ghisler(Author) wrote: 2021-09-07, 13:47 UTCBtw, if you want to store connections, you should set a user name and password. Then you can use a fixed URL which will not change regularly.
Do you mean in WiFi Transfer plugin for Android which acts as a server? Yes, there it's possible, but this is not a default plugin behavior. Anyway, above problem is on WebDAV plugin which acts as a client.
Android 4.3.1 no root, kernel 08.09.2016; Win7 Home Premium SP1 rus 32 bit
TC #149847 Personal licence

Cuz we're all in this together, We're here to make it right
flychi
New Member
New Member
Posts: 1
Joined: 2022-01-13, 09:36 UTC

How to save the username/pwd in Quick connection

Post by *flychi »

Christian,

very nice plugin, thanks!

I have two problem about use.
1. I have to fill the username and password in "Quick connection" at every time use.whether may save the server and username\pwd by some kind of way? that's it , open the webdav server when I click the "Quick connection" only.
2. F7 is new a connection,but i don't know when to use this function,no trigger any action when press the F7 button.

Best regards,
CHI JP
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 41868
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New beta plugin: WebDAV (WebFolders)

Post by *ghisler(Author) »

1. "Quick connection" is meant for connecting to a third party server once, it's not meant to connect multiple times - just create a new connection for that.
2. F7 shows the normal "New folder" dialog. Just type a name for your correction and press Enter or click OK, then you will be asked for the connection details.
Author of Total Commander
http://www.ghisler.com
Post Reply