Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.28.1 doesn't recognize filesize of fresh uploaded files #12822

Open
4 tasks done
IngoBelka opened this issue Apr 4, 2024 · 23 comments
Open
4 tasks done

3.28.1 doesn't recognize filesize of fresh uploaded files #12822

IngoBelka opened this issue Apr 4, 2024 · 23 comments
Labels

Comments

@IngoBelka
Copy link

IngoBelka commented Apr 4, 2024

⚠️ Before posting ⚠️

  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • 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 IngoBelka added the bug label Apr 4, 2024
@Discostu36
Copy link

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.

@dajusc
Copy link

dajusc commented Apr 4, 2024

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.

@brtwrst
Copy link

brtwrst commented Apr 4, 2024

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.

@Discostu36
Copy link

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?

@brtwrst
Copy link

brtwrst commented Apr 4, 2024

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.

@igor-cali
Copy link

igor-cali commented Apr 4, 2024

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.

@Pal-FC
Copy link

Pal-FC commented Apr 4, 2024

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

@Discostu36
Copy link

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

@Pal-FC
Copy link

Pal-FC commented Apr 4, 2024

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

@Discostu36
Copy link

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".

@IngoBelka
Copy link
Author

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

@GannonTdW
Copy link

Ho yes, a good news. Thanks.

@reaper
Copy link

reaper commented Apr 7, 2024

Great ! waiting for gplay release, thanks!

@monochromec
Copy link

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....

@ulrikrasmussen
Copy link

ulrikrasmussen commented Apr 9, 2024

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.

@Pal-FC
Copy link

Pal-FC commented Apr 9, 2024

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.

@Szwendacz99
Copy link

Szwendacz99 commented Apr 10, 2024

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

@igor-cali
Copy link

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).

@Szwendacz99
Copy link

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.

@igor-cali
Copy link

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).

@Whisprin
Copy link

@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.

@monochromec
Copy link

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.

@Notused1930
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests