owncloud / owncloud/android

[BUG] Android owncloud client not uploading without internet access

Open
#4,512 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
4.2k
Forks
3.1k
Avg merge
1d 12h
Merged PRs (30d)
7

Description

Actual behaviour

Mine internal owncloud server behind firewall and proxy is working well with Windows owncloud client and with linux clients
My android device on WIFI without internet connection can download items from my owncloud server, but cannot upload.
Everything selected to upload is still with status "enqueued"

Expected behaviour

upload & download should be without issues

Steps to reproduce
  1. internal owncloud server
  2. wifi without internet access
  3. try to upload something and check upload tab where you will see files as "enqueued"

Can this problem be reproduced with the official owncloud server?
(url: https://ocis.ocis.master.owncloud.works, user: einstein, password: relativity)
no

Environment data

Android version: 14
Tested

Device model: Samsung galaxy s23+
tested on galaxy tabs7 as well same issue
tested on older android devices = same issue

Stock or customized system: stock

ownCloud app version: 4.4.1
tested also 4.3.0

ownCloud server version: 10.15.0

Logs
Web server error log

no relevant logs just that device is connecting
I add sucesfully connection and all seems to be ok, just upload enqueued

ownCloud log (data/owncloud.log)

no relevant data

Insert your ownCloud log here
data from owncloud client log

loading file to dir /test1/
D: 2024-11-11 06:56:09:354(BaseActivity.java:292)show loading dialog
I: 2024-11-11 06:56:09:383(UploadFilesFromSystemUseCase.kt:94)Upload of /test1/owncloud.2024-11-11_06.55.39.log has been stored in the uploads database with id: 166
I: 2024-11-11 06:56:09:383(UploadFileFromSystemUseCase.kt:76)Plain upload of /data/user/0/com.owncloud.android/files/owncloud/tmp/testuser@10.40.1.141%2Fowncloud/test1/owncloud.2024-11-11_06.55.39.log has been enqueued.
D: 2024-11-11 06:56:09:389(BaseActivity.java:310)dismiss loading dialog
V: 2024-11-11 06:56:09:408(MainApp.kt:212)ReceiveExternalFilesActivity onPause() ending
V: 2024-11-11 06:56:09:416(MainApp.kt:201)LogsListActivity onStart() starting
V: 2024-11-11 06:56:09:417(MainApp.kt:208)LogsListActivity onResume() starting
V: 2024-11-11 06:56:09:805(MainApp.kt:216)ReceiveExternalFilesActivity onStop() ending
V: 2024-11-11 06:56:09:810(MainApp.kt:227)ReceiveExternalFilesActivity onDestroy() ending
V: 2024-11-11 06:56:13:657(MainApp.kt:212)LogsListActivity onPause() ending
V: 2024-11-11 06:56:13:667(MainApp.kt:201)SettingsActivity onStart() starting
V: 2024-11-11 06:56:13:668(MainApp.kt:208)SettingsActivity onResume() starting
V: 2024-11-11 06:56:14:054(MainApp.kt:216)LogsListActivity onStop() ending
V: 2024-11-11 06:56:14:055(MainApp.kt:227)LogsListActivity onDestroy() ending
V: 2024-11-11 06:56:17:074(MainApp.kt:212)SettingsActivity onPause() ending
V: 2024-11-11 06:56:17:081(BaseActivity.java:93)onRestart() start
V: 2024-11-11 06:56:17:082(BaseActivity.java:99)onRestart() end
V: 2024-11-11 06:56:17:082(MainApp.kt:201)UploadListActivity onStart() starting
D: 2024-11-11 06:56:17:084(BaseActivity.java:177)Account set: testuser@10.40.1.141/owncloud
D: 2024-11-11 06:56:17:085(DrawerActivity.kt:304)Update Quota
I: 2024-11-11 06:56:17:086(AvatarManager.kt:87)Avatar with imageKey a_testuser@10.40.1.141/owncloud is not available in cache. Generating one...
V: 2024-11-11 06:56:17:088(MainApp.kt:208)UploadListActivity onResume() starting
W: 2024-11-11 06:56:17:088(DrawerActivity.kt:402)setDrawerMenuItemChecked has been called with invalid menu-item-ID

My test:
old oCloud.de app = working
different devices same or older app version = not working
open firewall for my android device to internet = immediately upload working
after we close that access to internet again same issue

thank you for any help

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with UploadFilesFromSystemUseCase.kt and UploadFileFromSystemUseCase.kt, then trace how entries stored in the uploads database are processed when the device has access only to the internal server. Reproduce with the listed Android versions and an offline Wi-Fi network, using the upload tab and client logs. Done means uploads leave "enqueued" and complete without opening internet access.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.