New plugin available: Cloud (access to Box, Dropbox, etc).

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New plugin available: Cloud (access to Box, Dropbox, etc).

Post by *ghisler(Author) »

Please try enabling FTP logging, it also logs file system plugins:
Configuration - Options - FTP - Create a log file.

One user had the problem that the service sent him an incredibly long login token. Please check if the following line is the same for failed re-logins:
Appending Bearer header - length: 1176

Here the login token is 1176 characters long. It's the same length on a fresh login and a repeated login (from stored credentials).
Author of Total Commander
https://www.ghisler.com
The_Immortal
Junior Member
Junior Member
Posts: 7
Joined: 2013-11-12, 14:05 UTC

Re: New plugin available: Cloud (access to Box, Dropbox, etc).

Post by *The_Immortal »

2ghisler(Author),

via internal browser:

Code: Select all

HTTP error: Cannot connect
Requesting OAUTH token - body length: 239
Not so much information... But via external browser we get:

Code: Select all

Waiting for auth code from server...
Connect, waiting for data...
recv: 745 bytes received
HTTP/ received, closing
GET /?code=M.R3_BL2.6a65f067-9857-xxxx-xxxx-52e3ab0b582a HTTP/1.1
Host: localhost:38080
Connection: keep-alive
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36 Edg/106.0.1370.52
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Sec-Fetch-Site: cross-site
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
sec-ch-ua: "Chromium";v="106", "Microsoft Edge";v="106", "Not;A=Brand";v="99"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
Accept-Encoding: gzip, deflate, br
Accept-Language: ru,en;q=0.9,en-GB;q=0.8,en-US;q=0.7


Closing server socket
HTTP error: The requested security package does not exist

Requesting OAUTH token - body length: 247
---
Well, I solved the problem - that was local problem caused by fk...g russian crypto software called "CryptoPRO CSP" - after its uninstalling I got access to OneDrive account.

Sorry for disturbing!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New plugin available: Cloud (access to Box, Dropbox, etc).

Post by *ghisler(Author) »

The requested security package does not exist
This means that TLS 1.2 or 1.3 is disabled in the Windows Internet options. Please check this:
1. Run control.exe
2. Click on "Internet options"
3. Go to the last tab (Advanced or Extended or so)
4. Scroll down almost to the end, and make sure the following options are checked:
Use TLS 1.2
Use TLS 1.3
You should also uncheck TLS 1.1, 1.0, and SSL 3.0, they are outdated and have security issues.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New plugin available: Cloud (access to Box, Dropbox, etc).

Post by *ghisler(Author) »

The final version 2.50 is available now!

Download here:
https://www.ghisler.com/cloudplugin.htm

The plugin itself is unchanged from beta 6, but the oauthbroweser2 now allows to set the location of its data files via tccloud.ini, see the readme.txt within the plugin package.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: New plugin available: Cloud (access to Box, Dropbox, etc).

Post by *petermad »

2ghisler(Author)
the oauthbroweser2 now allows to set the location of its data files via tccloud.ini, see the readme.txt within the plugin package.
I have the tccloud.ini file redirected in my wincmd.ini like this:

Code: Select all

[ReplaceIniLocation]
cloudplugin.wfx=%COMMANDER_PATH%\PLUGINS\wfx\cloudplugin\tccloud.ini
And when the tccloud.ini file is redirected, a setting like this:

Code: Select all

[oauthbrowser2]
datapath=%USERPROFILE%
in tccloud ini is not recognized.

If I remove the redirection and put tccloud.ini back in the same directory as wincmd.ini, then setting the datepath in tccloud.ini like here above works.

Would it be possible to make the [oauthbrowser2] section also be read when tccloud.ini is redirected?
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New plugin available: Cloud (access to Box, Dropbox, etc).

Post by *ghisler(Author) »

Sorry, redirections are not handled by the plugin.

Just put a new tccloud.ini in the same directory as the wincmd.ini (it can be read only) with the two lines

Code: Select all

[oauthbrowser2]
datapath=%USERPROFILE%
Author of Total Commander
https://www.ghisler.com
User avatar
FrankCH
Junior Member
Junior Member
Posts: 10
Joined: 2007-03-22, 12:39 UTC

Re: New plugin available: Cloud (access to Box, Dropbox, etc).

Post by *FrankCH »

pplupo wrote: 2022-10-19, 16:10 UTC Can you please consider supporting Proton's drive?
I would also like to be able to add Proton drive to my Total Commander, since DropBox is not accessible in some companies!
Proton is a Swiss company, data hosted in Switzerland
https://proton.me
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New plugin available: Cloud (access to Box, Dropbox, etc).

Post by *ghisler(Author) »

Unfortunately it's impossible - they use end to end encryption with a proprietary not described access method, so third party apps are not able to access their service.
Author of Total Commander
https://www.ghisler.com
Erik-DJ
Junior Member
Junior Member
Posts: 39
Joined: 2007-09-15, 14:53 UTC
Location: Noord-Brabant, The Netherlands

Re: New plugin available: Cloud (access to Box, Dropbox, etc).

Post by *Erik-DJ »

TC crashes using cloudplugin with OneDrive and Google Drive

I’ve tested this on my private computer and work computer; on my private computer it works fine, on my work computer TC crashes (or closes).

Private computer: Windows 11 pro (22H2), TC 10.52 x64, cloudplugin v2.5
Work (company) computer (no admin rights): Windows 10 enterprise (21H2), TC 10.52 x64, cloudplugin v2.5

On my private computer everything works correctly; I can access both my OneDrive and Google Drive accounts in TC via cloudplugin. Works with every browser I choose (FireFox, Edge, TC internal (OneDrive)).

But on my work computer:
- Start cloudplugin session
- Edge opens (or FireFox)
- Enter my password
- Browser says: Code received! Please close browser and return to Total Commander.
- TC crashed at the moment the browser says ‘Code received’.

I turned on ‘detailed log’ in the cloudplugin settings but no log is created in %temp% (probably because of the crash of TC).

The crash happens with OnDrive New and Google Drive. The other providers I did not test because I do not have accounts there.

Also tested with OneDrive (not the New) with included web browser. Then I get the included browser window (Oauth2 login (WebView2)); then I select the account; then browser closes and TC crashes.

Can you give me a solution or can I test anything else? Thanks!

----
Edit: did some more testing: if I use TC 10.52 32-bit, the plugin just works fine on my work computer (win10 64-bit). So it’s some kind of 32/64-bit difference.

Hope this helps you to look further into the problem.

Regards, Erik
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New plugin available: Cloud (access to Box, Dropbox, etc).

Post by *ghisler(Author) »

Just tried it with OneDrive New and Google drive, no crashes. I have tried with Edge as you wrote.
Do you get any error message?
Author of Total Commander
https://www.ghisler.com
Erik-DJ
Junior Member
Junior Member
Posts: 39
Joined: 2007-09-15, 14:53 UTC
Location: Noord-Brabant, The Netherlands

Re: New plugin available: Cloud (access to Box, Dropbox, etc).

Post by *Erik-DJ »

Hi Christian, I also tried it on another Win10-x64 computer and it works fine, so it has something to do with my work computer (also Win10-x64). But I cannot find out what. On my work computer I also tried the cloudplugin in DoubleCommander (DC-32) and there the plugin also works correctly, but the 64-but plugin crashes like in TC-64 except that DC-64 stays alive where TC crashes/closes.
I do not get any error messages. TC just closes right after the browser says ‘Code received’. Is there anything I can do to help you/test/debug so I could use TC 64-bit with the cloudplugin? For now I return back to TC 32-bit because I need to use the cloudplugin.

Another question: where does TC store the login credentials or password for the included web browser? Because now when I connect to OneDrive, TC logs in automaticly. I don’t want that but I can’t find out how to ‘forget’ the password. Thanks.
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: New plugin available: Cloud (access to Box, Dropbox, etc).

Post by *petermad »

Erik-DJ wrote:where does TC store the login credentials or password for the included web browser?
It is stored in the [|FSPlugin|cloudplugin] section of the wcx_ftp.ini file.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New plugin available: Cloud (access to Box, Dropbox, etc).

Post by *ghisler(Author) »

2Erik-DJ
Could you make sure you have the latest version 2.50 of the cloud plugin? There were some problems with very long codes sent by cloud services which were fixed in 2.50.
Author of Total Commander
https://www.ghisler.com
Erik-DJ
Junior Member
Junior Member
Posts: 39
Joined: 2007-09-15, 14:53 UTC
Location: Noord-Brabant, The Netherlands

Re: New plugin available: Cloud (access to Box, Dropbox, etc).

Post by *Erik-DJ »

2ghisler
Yes it is version 2.5 (ReadMe.txt: 20221230 Public release version 2.5 final).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: New plugin available: Cloud (access to Box, Dropbox, etc).

Post by *ghisler(Author) »

Could you enable FTP logging in Configuration - Options - FTP? This also logs file system plugins like Cloud.
It should report the length of the access token, with a line starting like this:
access_token length:
Author of Total Commander
https://www.ghisler.com
Post Reply