Upload via Share/Send feature fails with (incorrect) NO_NETWORK_CONNECTION #12963
Labels
bug
connectivity
DNS, TLS, proxies, network connection, etc. related matter
feature: sharing to/from other apps
feature: sync and upload
Syncing or uploading (that isn't auto upload specific)
Steps to reproduce
Those network requests are logged on the server side.
The picture is not uploaded, no request for the upload is logged on the server side.
Expected behaviour
The picture should get uploaded to the server.
Actual behaviour
The picture is not uploaded, no network request is done for the upload, although other network requests to the nextcloud server are done and succeed.
Android version
11
Device brand and model
Samsung Galaxy S21
Stock or custom OS?
Stock
Nextcloud android app version
Current (3.29.0)
Nextcloud server version
Current (28 and 29)
Using a reverse proxy?
No
Android logs
2024-05-01 16:31:40.273 18975-19599 UploadFileOperation com.nextcloud.client E Upload of /storage/emulated/0/Android/media/com.nextcloud.client/nextcloud/tmp/xxx@xxx/xxx/IMG-20240429-WA0002.jpg to /xxx/IMG-20240429-WA0002.jpg: No network connection
2024-05-01 16:31:40.273 18975-19599 UploadsStorageManager com.nextcloud.client D updateDatabaseUploadResult uploadResult: RemoteOperationResult{mSuccess=false, mHttpCode=-1, mHttpPhrase='null', mException=null, mCode=NO_NETWORK_CONNECTION, message='null', getLogMessage='No network connection'} upload: com.owncloud.android.operations.UploadFileOperation@c911752
2024-05-01 16:31:40.277 18975-19599 UploadsStorageManager com.nextcloud.client V Updating /storage/emulated/0/Android/media/com.nextcloud.client/nextcloud/tmp/xxx@xxx/xxx/IMG-20240429-WA0002.jpg with status:UPLOAD_FAILED and result:NETWORK_CONNECTION (old:/storage/emulated/0/Android/media/com.nextcloud.client/nextcloud/tmp/xxx@xxx/xxx/IMG-20240429-WA0002.jpg status:UPLOAD_IN_PROGRESS result:-1)
2024-05-01 16:31:40.277 18975-19599 UploadsStorageManager com.nextcloud.client V Updating /storage/emulated/0/Android/media/com.nextcloud.client/nextcloud/tmp/xxx@xxx/xxx/IMG-20240429-WA0002.jpg with status=UPLOAD_FAILED
2024-05-01 16:31:40.278 18975-19599 UploadsStorageManager com.nextcloud.client D updateUpload returns with: 1 for file: /storage/emulated/0/Android/media/com.nextcloud.client/nextcloud/tmp/xxx@xxx/xxx/IMG-20240429-WA0002.jpg
2024-05-01 16:31:40.278 18975-19599 UploadsStorageManager com.nextcloud.client D notifyObserversNow
2024-05-01 16:31:40.278 18975-19599 FileUploadWorker com.nextcloud.client D NotifyUploadResult with resultCode: NO_NETWORK_CONNECTION
Server error logs
No logs are recorded for the expected upload request.
Additional information
This is a client only issue. I observe no issues uploading from other devices.
The discrepancy: the app does indeed have a network connection, everything works, it can browse the server side folder structure, it can create folders on the server side.
Only when then trying to upload a file then above error suddenly occurs which does not make much sense.
This is not my device, if required I can perform additional tests, but that requires a bit of time to get hold of the device again.
The text was updated successfully, but these errors were encountered: