android icon indicating copy to clipboard operation
android copied to clipboard

3.28.1 doesn't recognize filesize of fresh uploaded files

Open IngoBelka opened this issue 1 year ago • 25 comments

⚠️ Before posting ⚠️

  • [X] This is a bug, not a question or an enhancement.
  • [X] I've searched for similar issues and didn't find a duplicate.
  • [X] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • [X] I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

  1. upload a file
  2. open app version 3.28.1
  3. search for uploaded file

Expected behaviour

to see the right filesize and to be able to download the file

Actual behaviour

filesize 0B - no download possible

Android version

9 / 11

Device brand and model

Huawei mediapad 5 / Xiaomi Mi 9t

Stock or custom OS?

Stock

Nextcloud android app version

3.28.1

Nextcloud server version

27.1.6

Using a reverse proxy?

I don't know

Android logs

No response

Server error logs

No response

Additional information

There are no problems with version 3.28. And there are no problems with several other devices and browsers.

IngoBelka avatar Apr 04 '24 13:04 IngoBelka

This is not limited to new files, there are also files in my NC that are two weeks old that show 0 Byte file size and that I cannot access from Android. The only workaround is to export the file to the Download folder and open it.

Discostu36 avatar Apr 04 '24 13:04 Discostu36

Same Problem here with NC 28.0.4 and Android App 3.28.1. All files are affected, not only new ones. As soon as I try to download any file, the displayed size of this file changes to "0 B" and the file is not downloaded. It worked fine with the previous Android App 3.28.0.

dajusc avatar Apr 04 '24 14:04 dajusc

I have the same problem as described above. Downloading files or opening pdf files is not working. Exporting files (to the downloads folder) is still working. There seem to be several issues with the 3.28.1. I have downgraded to 3.28.0 for now and everything is back to normal.

brtwrst avatar Apr 04 '24 15:04 brtwrst

I have downgraded to 3.28.0 for now and everything is back to normal.

Uninstall, get apk from GitHub, reinstall and set up again? Or is there an easier way for downgrading?

Discostu36 avatar Apr 04 '24 15:04 Discostu36

I just use the Fdroid App Store, when the app is uninstalled and you visit the site for the nextcloud app, click the 3 dots top right and disable the updates, then go to the bottom and you can find the "available versions" menu where you can chose what version to install.

brtwrst avatar Apr 04 '24 15:04 brtwrst

I think this post of mine in the community forum can be related to this bug. I paste my findings below for convenience.

Trying to trobleshoot this myself, I note that the files is shown as syncronized in the Android client (automatically or if synced manually from the … file item menu) but:

/storage/emulated/0/Android/media/com.nextcloud.client/[myuserfolder]/[sub-path]/[document.ext]: contains an old version with old filestamp
/storage/emulated/0/Android/media/com.nextcloud.client/tmp/[myuserfolder]/[sub-path]/[document.ext]: note the tmp in the path - contains the most updated version with updated filestamp.

Manually moving from the tmp folder to the proper one works it around until next sync. It looks like the sync process is not completed in the last step (from tmp to the proper folder.

igor-cali avatar Apr 04 '24 20:04 igor-cali

Same problem With the latest version of NEXTCLOUD(3.28.1), only with opening PDFs. For other file types (jpg, md, etc..) no problem.

Pal-FC avatar Apr 04 '24 21:04 Pal-FC

I don't think this is PDF specific, I have the same problem with my Keepass database file.

Discostu36 avatar Apr 04 '24 21:04 Discostu36

Fixed with 3.28.2 https://github.com/nextcloud/android/releases/tag/stable-3.28.2

Pal-FC avatar Apr 04 '24 22:04 Pal-FC

Thanks, seems to work. The only thing I noticed is that in the "activity" view the file size of every version is still shown as "0 B".

Discostu36 avatar Apr 05 '24 07:04 Discostu36

Oh, that's a good news. So, I'm waiting for F-Droid delivering that new version. Thank you!

IngoBelka avatar Apr 05 '24 11:04 IngoBelka

Ho yes, a good news. Thanks.

GannonTdW avatar Apr 05 '24 16:04 GannonTdW

Great ! waiting for gplay release, thanks!

reaper avatar Apr 07 '24 20:04 reaper

Confirming that version 3.28.2 indeed fixes this. What was strange is that the logs generated by the app all reported a "200" status when downloading a file....

monochromec avatar Apr 08 '24 09:04 monochromec

I can confirm that this is fixed if downloading and installing the 3.28.2 gplay apk on my phone. But it is a bit disconcerting that there is no PR explicitly referencing this bug, no post-mortem of what went wrong, and no mention in the release changelog.

This bug happened at the scariest possible time for me. Last night I had just used my phone to add a password to my Keepass database to a fairly important account with no other recovery options, and this morning the database showed as having 0 bytes. I had to pull the power from my router and start my laptop to backup the database stored there, then bring it online and luckily realize that the changes from last night had indeed been synced and that the file size of 0 bytes on my phone was bogus. Phew!

But honestly this has shaken by confidence in using Nextcloud to synchronize important data.

ulrikrasmussen avatar Apr 09 '24 05:04 ulrikrasmussen

I can confirm that this is fixed if downloading and installing the 3.28.2 gplay apk on my phone. But it is a bit disconcerting that there is no PR explicitly referencing this bug, no post-mortem of what went wrong, and no mention in the release changelog.

This bug happened at the scariest possible time for me. Last night I had just used my phone to add a password to my Keepass database to a fairly important account with no other recovery options, and this morning the database showed as having 0 bytes. I had to pull the power from my router and start my laptop to backup the database stored there, then bring it online and luckily realize that the changes from last night had indeed been synced and that the file size of 0 bytes on my phone was bogus. Phew!

But honestly this has shaken by confidence in using Nextcloud to synchronize important data.

I agree with you, there should have been at least a warning somewhere, but nothing.

Pal-FC avatar Apr 09 '24 07:04 Pal-FC

For me, the version 3.28.2 from FDroid does not seem to fix the issue.

Edit: I don't know what is going on, but syncing seem to work only 1 level down the directory, files that are deeper are not being synced

Edit2: It actually looks like it just downloads those files that are in directory that i have opened at least once before, in the nc android app

Szwendacz99 avatar Apr 10 '24 16:04 Szwendacz99

Edit2: It actually looks like it just downloads those files that are in directory that i have opened at least once before, in the nc android app

I think this is the intended behaviour. It always worked for me in NC Android app in my devices: files/folder opened or downloaded are later synced (and marked with a green or red flag to show sync status).

igor-cali avatar Apr 10 '24 18:04 igor-cali

Edit2: It actually looks like it just downloads those files that are in directory that i have opened at least once before, in the nc android app

I think this is the intended behaviour. It always worked for me in NC Android app in my devices: files/folder opened or downloaded are later synced (and marked with a green or red flag to show sync status).

It definitely was not working like that before. I do know that files once opened might be downloaded, but we are talking about whole directory sync.

Szwendacz99 avatar Apr 10 '24 18:04 Szwendacz99

For me, the version 3.28.2 from FDroid does not seem to fix the issue.

Same for me: issue still observable with 3.28.2 from F-Droid. On Fairphone 3 device (Android 13).

igor-cali avatar Apr 11 '24 17:04 igor-cali

@Szwendacz99 @igor-cali I had to manually delete the (empty) folder that contains the files. Afterwards syncing the file worked again with 3.28.2 The location where Nextcloud stores the files in the file system can be found under Settings > Data storage folder.

Whisprin avatar Apr 12 '24 23:04 Whisprin

Confirming that version 3.28.2 indeed fixes this. What was strange is that the logs generated by the app all reported a "200" status when downloading a file....

While this works for a single file, it does't recursively synchronize a directory hierarchy as it was the case in previous versions.

monochromec avatar Apr 13 '24 05:04 monochromec

Same problems here. Does anyone know when a solution to this will come

Notused1930 avatar May 10 '24 05:05 Notused1930

I downgraded to Version 3.23.0 and syncing a large directory tree full of PDFs works.

mardukbp avatar Jun 18 '24 06:06 mardukbp

I got the same Problem on 3.29.0. The recommendation of whisprin to delete files worked for me, too. To be more precise. Look into the Settings where your Nextcloud files are cached. Something like: /storage/emulated/0/Android/media/com.nextcloud.client. In this Folder you will find a folder called nextcloud, open it. Then there you find a tmp folder. I deleted everything inside this tmp folder. After that, everything is working again.

p0ll3 avatar Jun 23 '24 21:06 p0ll3