WebDAV plugin bugs/missing functionality

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

Moderators: Hacker, petermad, Stefan2, white

StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

unwanted (refresh) progress window steals focus

Post by *StatusQuo »

I'm using TC7.01, WebDAV 1.5 (same issue with 1.3) on a GMX account, Win2k.

Having a WebDAV directory listing in a displayed tab TC steals the focus from dialogs called via context menu or drag&drop.
About 2 seconds after calling it TC shortly shows a progress window and steals the focus from the opened dialog (forcing the user to mouse-click into the dialog to continue using it).

Example: encrypting/decrypting a file using PGP (called via context menu of any file) or GPG (drag&drop a file via WinPT).
The dialog for choosing a key or typing a pass phrase gets displayed in foreground, before TC's progress dialog steals the focus about 2 seconds later.
(The dialog doesn't appear on the taskbar and isn't accessible with Alt-Tab, which makes this even more annoying...)
When switching to local tab on both sides first (WebDAV-tab still active in background), this doesn't happen.

I haven't found a way to disable the (refresh?): in TC Options/Refresh I had AB/:\, "Auto-Refresh when file system changes" was turned off completely. But this progress window still steals the focus.

Is there maybe something like a hardcoded refresh in the WebDAV plugin?
Is there something that can be improved in the plugin, or something I can change myself to prevent this?

Edit: Screenshot here
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Strange, I have never seen such a problem with my WebDAV plugin. It doesn't update directory listings automatically, there is no keep alive or so.

Do you get the same problem with the latest official release. 1.6?
Does anyone else have this problem?
Author of Total Commander
https://www.ghisler.com
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

ghisler(Author) wrote:Do you get the same problem with the latest official release. 1.6?
Yes, same behaviour with 1.6. All other plugins were deactivated for testing (deleted from INI + restarted TC).
In the FTP command window the following lines are automatically added (the same as on connecting):
=================
Get dir: \
PROPFIND / HTTP/1.1
207 Multi-Status
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You mean that these 4 lines appear in the log again and again all the time?

Do you run any scripts?
Do you use any auto-refresh options in configuration - options - refresh (lower part)?
Author of Total Commander
https://www.ghisler.com
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

These 4 lines appear once again every time the PGP/GPG window is called.

No scripts are running here (no AHK or similar, no special keyboard driver).

All auto-refresh options were deactivated for testing (even the greyed-out checkboxes), I also added "/" to NoReread - still the same behaviour.
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry, I have no idea what is going on in your case. I have tried it, TC does NOT auto-refresh plugins when you switch away from TC and back to it...
Author of Total Commander
https://www.ghisler.com
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

ghisler(Author) wrote:TC does NOT auto-refresh plugins when you switch away from TC and back to it
After some more testing: Agree, not on manually switching away & back.
But using drag/drop to another window it refreshes everything (?) when using drag/drop to any window - no matter what settings are in the "refresh" section of the TC options. :(
(So this issue is not about this specific plugin, sorry for putting it in the wrong thread.)

Example with a network connection to show the refresh:
  • open an Exlorer window or a second TC task in the background as drop target
  • in TC on the right panel open a network connection, that you can interrupt
  • now physically cut the above network connection (e.g. by shutting down the remote machine)
  • drag a local file from the left panel to the TC/Explorer in the background and drop the file there
  • switch back to the first TC window
:arrow: TC shows the "Connect" window while trying to refresh the panel with the network path - it shouldn't, when this is deactivated in the options

So this seems to concern TC's refresh in general, not the specific plugin.
(2Mod: Maybe split&move to bugs section?)
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

But using drag/drop to another window it refreshes everything (?) when using drag/drop to any window - no matter what settings are in the "refresh" section of the TC options.
Ah, I see - that's a completely different case! I will try to exclude plugins from the refresh.
Author of Total Commander
https://www.ghisler.com
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

ghisler(Author) wrote:I will try to exclude plugins from the refresh.
TIA.
For network dirs this would be desirable, too: it was not possible to keep the listing of the network connection displayed in TC after shutting down the server pc...
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

ghisler(Author) wrote:
But using drag/drop to another window it refreshes everything (?) when using drag/drop to any window - no matter what settings are in the "refresh" section of the TC options.
Ah, I see - that's a completely different case! I will try to exclude plugins from the refresh.
Found another easy way to reproduce the constant (unwanted) refresh:
  • One panel: use WebDAV-Plugin (1.6),
  • Other panel: navigate to a local drive/path, place the cursor here.
  • Copy some characters of plain text into Windows clipboard (mark text + press Ctrl+C) and
  • Press Ctrl+V (with cursor in panel with local drive)
:arrow: The WebDAV-panel does a refresh everytime Ctrl+V is pressed on the other panel, although there's nothing to insert. :-\
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Post by *StatusQuo »

StatusQuo wrote:Having a WebDAV directory listing in a displayed tab TC steals the focus from dialogs called via context menu or drag&drop.
ghisler(Author) wrote:
But using drag/drop to another window it refreshes everything (?) when using drag/drop to any window - no matter what settings are in the "refresh" section of the TC options.
Ah, I see - that's a completely different case! I will try to exclude plugins from the refresh.
Maybe the cause is related to this thread: No autorefresh?

(This is still unchanged in TC 7.02a.)
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
StatusQuo
Power Member
Power Member
Posts: 1524
Joined: 2007-01-17, 21:36 UTC
Location: Germany

Unwanted refresh stealing focus even from TC dialogs

Post by *StatusQuo »

I now found an example where WebDAV plugin steals the focus even from TC's own internal configuration dialogs (color definition).
  • - open WebDAV folder in left panel, containing some files
    - call Configuration -> Options -> Color -> Define colors by file type
    - change the color definition for a file actually displayed in WebDAV folder, like "*.*"
    - apply the new color definition (press Enter key/OK until you are at the "Color" options screen again)
=> WebDAV plugin now does a refresh, stealing the focus from TC's options window;
instead with keyboard input you can now navigate through TC's main window - behind the displayed Color options window.
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Applying color definitions requires a refresh of the file lists to recalculate the displayed colors. Unfortunately some plugins have to show a progress dialog, so that's what you are seing here.
Author of Total Commander
https://www.ghisler.com
Post Reply