OneDrive Plugin: "read file error" on copy to local

Support for Android version of Total Commander

Moderators: Hacker, petermad, Stefan2, white

Post Reply
tango_durango
Junior Member
Junior Member
Posts: 3
Joined: 2024-07-08, 15:44 UTC

OneDrive Plugin: "read file error" on copy to local

Post by *tango_durango »

TC: v3.50
Plugin: v2.60

Getting "read file error" on copy to local storage. Happens on multiple tablets with various version of Android.

No error is being reported on first connecting. Looks normal.

Can copy to & delete from OneDrive!

X-plore shows error: "http:Unauthenticated".

MixPlorer is working.

Windows version (cloud plugin) is working.

Any ideas.
Last edited by tango_durango on 2024-07-11, 07:09 UTC, edited 1 time in total.
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: OneDrive Plugin: "read file error" on copy to local

Post by *petermad »

No problems here on Samsung Galaxy S20 with Android 13

I can copy to both Internal storage and SD-card from Onedrive (and the other way too)

But I am on TC 3.60b2 and Onedrive plugin 2.70b1
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
tango_durango
Junior Member
Junior Member
Posts: 3
Joined: 2024-07-08, 15:44 UTC

Re: OneDrive Plugin: "read file error" on copy to local

Post by *tango_durango »

Installed OneDrive Beta plugin.
Shows 401 error - which means there is a challenge from OneDrive and no response from the client.
Reset OneDrive permissions from here:
https://account.live.com/consent/Manage
But still no luck, same error.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50386
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: OneDrive Plugin: "read file error" on copy to local

Post by *ghisler(Author) »

So far I haven't seen the problem myself. From a log sent to me by a user it looks like the server redirects the app to a different server when trying to download a file. This redirected server then returns a 401 error, probably because the login token isn't sent to the other server when redirecting.

Unfortunately I don't know why this is happening, and what I need to to to replicate the error.
Author of Total Commander
https://www.ghisler.com
tango_durango
Junior Member
Junior Member
Posts: 3
Joined: 2024-07-08, 15:44 UTC

Re: OneDrive Plugin: "read file error" on copy to local

Post by *tango_durango »

Log from MiXplorer on successful copy from OneDrive to local storage. Line 416 looks interesting & includes the token.

407 I/OPERATION> #1 COPY ---------------------------------------
SRC: https://graph.microsoft.com/Files/Apps/Audio Recorder v3.5.15 (2.3+).apk
DST: /storage/emulated/0/Download
‌408 D/OH:> default
‌409 D/BaseHttp> Operation started >> 1
‌410 D/RestUtil> --> GET https://graph.microsoft.com/v1.0/me/drive/items/4DCC7F64C9502516!1390/content http/1.1
‌411 D/RestUtil> Accept: */*
‌412 D/RestUtil> Authorization xxxxxxxx
‌413 D/RestUtil> User-Agent: Mozilla/5.0 (Linux; Android 11; AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/89.0.4389.105 Mobile Safari/537.36
‌414 D/RestUtil> Connection: keep-alive
‌415 D/RestUtil> --> END GET
‌416 D/RestUtil> <-- 200 https://my.microsoftpersonalcontent.com/personal/4dcc7f64c9502516/_layouts/15/download.aspx?xxxxxxxx
‌417 D/RestUtil> cache-control: private
‌418 D/RestUtil> content-length: 5971283
‌419 D/RestUtil> content-type: application/octet-stream
‌420 D/RestUtil> accept-ranges: bytes
‌421 D/RestUtil> etag: "{C9502516-7F64-20CC-804D-6E0500000000},2"
‌422 D/RestUtil> p3p: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"
‌423 D/RestUtil> x-networkstatistics: 0,525568,0,0,32467,0,30876,20
‌424 D/RestUtil> x-sharepointhealthscore: 2
‌425 D/RestUtil> docid: my.microsoftpersonalcontent.com_641d7b5c-6e48-4446-ba31-a72c4b926e9a_c9502516-7f64-20cc-804d-6e0500000000
‌426 D/RestUtil> x-download-options: noopen
‌427 D/RestUtil> content-disposition: attachment;filename*=utf-8''Audio%20Recorder%20v3%2E5%2E15%20%282%2E3%2B%29%2Eapk;filename="Audio Recorder v3.5.15 (2.3+).apk"
‌428 D/RestUtil> ctag: {C9502516-7F64-20CC-804D-6E0500000000},2,2
‌429 D/RestUtil> x-aspnet-version: 4.0.30319
‌430 D/RestUtil> x-databoundary: NONE
‌431 D/RestUtil> x-1dscollectorurl: https://mobile.events.data.microsoft.com/OneCollector/1.0/
‌432 D/RestUtil> x-ariacollectorurl: https://browser.pipe.aria.microsoft.com/Collector/3.0/
‌433 D/RestUtil> sprequestguid: 9a2e3ba1-c053-5000-f3f6-1e9c7295c0f4
‌434 D/RestUtil> request-id: 9a2e3ba1-c053-5000-f3f6-1e9c7295c0f4
‌435 D/RestUtil> ms-cv: oTsumlPAAFDz9h6ccpXA9A.0
‌436 D/RestUtil> report-to: {"group":"network-errors","max_age":7200,"endpoints":[{"url":"https://spo.nel.measure.office.net/api/report?xxxxxxxx
‌437 D/RestUtil> nel: {"report_to":"network-errors","max_age":7200,"success_fraction":0.001,"failure_fraction":1.0}
‌438 D/RestUtil> strict-transport-security: max-age=31536000
‌439 D/RestUtil> x-frame-options: SAMEORIGIN
‌440 D/RestUtil> content-security-policy: frame-ancestors 'self' teams.microsoft.com *.teams.microsoft.com *.skype.com *.teams.microsoft.us local.teams.office.com teams.cloud.microsoft *.office365.com goals.cloud.microsoft *.powerapps.com *.powerbi.com *.yammer.com engage.cloud.microsoft word.cloud.microsoft excel.cloud.microsoft powerpoint.cloud.microsoft *.officeapps.live.com *.office.com *.microsoft365.com *.stream.azure-test.net *.microsoftstream.com *.dynamics.com *.microsoft.com onedrive.live.com *.onedrive.live.com securebroker.sharepointonline.com;
‌441 D/RestUtil> x-powered-by: ASP.NET
‌442 D/RestUtil> microsoftsharepointteamservices: 16.0.0.25019
‌443 D/RestUtil> x-content-type-options: nosniff
‌444 D/RestUtil> x-ms-invokeapp: 1; RequireReadOnly
‌445 D/RestUtil> x-cache: CONFIG_NOCACHE
‌446 D/RestUtil> x-msedge-ref: Ref A: 73FF54F3DE9248CE800450E74AE8F385 Ref B: CH1EDGE2216 Ref C: 2024-07-11T07:40:46Z
‌447 D/RestUtil> date: Thu, 11 Jul 2024 07:40:46 GMT
‌448 D/RestUtil> <-- END HTTP
‌449 I/ROOT> *********************** Not rooted. 56 ms
‌450 I/ROOT> Access to root is disabled in the settings.
‌451 I/OPERATION> #1 COPY DONE -------
Post Reply