Bug 425261 - Most files are 0 byte and not accessable
Summary: Most files are 0 byte and not accessable
Status: RESOLVED FIXED
Alias: None
Product: libkgapi
Classification: Frameworks and Libraries
Component: drive (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR critical
Target Milestone: ---
Assignee: Daniel Vrátil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-12 15:20 UTC by jetlir.izairi
Modified: 2020-09-07 10:06 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 20.08.2
Sentry Crash Report:


Attachments
Log (880 bytes, text/plain)
2020-08-12 15:20 UTC, jetlir.izairi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jetlir.izairi 2020-08-12 15:20:52 UTC
Created attachment 130824 [details]
Log

STEPS TO REPRODUCE
1. Try access any file which is not downloaded yet (0 Byte)
2. Error shows when trying to open

I think you would need to wait for all files to sync first, 
but there is no network connection going on on the background. 

See Logs for the error when trying to access a specific file.

Further note: 
GDrive is currently 16 GB big and has >10.000 files.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)

Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Kernel Version: 5.4.0-42-generic
OS Type: 64-bit
Processors: 12 × AMD Ryzen 5 2600 Six-Core Processor
Memory: 15,6 GiB of RAM
Comment 1 twinshadows404 2020-08-12 17:56:05 UTC
Can confirm it.
Size of mine is less then 500MB and has ~30 files

Operating System: openSUSE Tumbleweed 20200810
KDE Plasma Version: 5.19.4
KDE Frameworks Version: 5.72.0
Qt Version: 5.15.0
Kernel Version: 5.8.0-1-default
OS Type: 64-bit
Comment 2 David Barchiesi 2020-08-18 11:33:26 UTC
This seems to only affect Google Docs or Google Sheets documents and it seems to be a bug in libkgapi that doesn't handle 307 Temporary Redirects.
Comment 3 apolinario 2020-08-29 16:27:00 UTC
(In reply to David Barchiesi from comment #2)
> This seems to only affect Google Docs or Google Sheets documents and it
> seems to be a bug in libkgapi that doesn't handle 307 Temporary Redirects.

Same thing happens on mine. Works on all files, except for the ones made through Google Docs, Sheets, and Slides.
Comment 4 David Barchiesi 2020-09-07 10:06:12 UTC
Git commit 6e799a18f89b2db0d3abc82d962cb66fa2cce211 by David Barchiesi, on behalf of Jonathan Marten.
Committed on 07/09/2020 at 10:05.
Pushed by barchiesi into branch 'release/20.08'.

Accept HTTP status 307 as a redirect

Google appears to return this code when downloading a Drive document.
It is not being interpreted as a redirect and so the download fails with
an unknown error.
FIXED-IN: 20.08.2

M  +1    -0    src/core/job.cpp
M  +1    -0    src/core/types.h

https://invent.kde.org/pim/libkgapi/commit/6e799a18f89b2db0d3abc82d962cb66fa2cce211