nextcloud / nextcloud/android

Crash on android upon Opening folder immediately after pull down to refresh crashed android app on S24 ultra

Open
#16,563 0 comments 0 reactions 0 assignees View on GitHub
0. Needs triage bug
Dominant language
Kotlin
Stars
5.6k
Forks
2k
Avg merge
2d 18h
Merged PRs (30d)
92

Description

### ⚠️ Before posting ⚠️

- [x] This is a **bug**, not a question or an enhancement.
- [x] I've [searched for similar issues](https://github.com/nextcloud/android/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](https://nextcloud.com/contribute/code-of-conduct/).

### Steps to reproduce

1. Open android app for nextcloud
2. Pull down by swipe of the thumb from middle of the screen to trigger a refresh of the folders and files
3. Immediately after animation of the refresh disappears, click a folder to open it.
4. This may require 2 or more consecutive refresh requests.
5. Then quickly click on a folder to open the folder
6. This may require clicking on a folder that is actively syncing files.

### Expected behaviour

Expected behavior is that the folder opens after the refresh request.

### Actual behaviour

Upon clicking on the folder, the app crashes

### Android version

Android 16 build BP2A.250605.031.A3.S928U1UES4CZA1

### Device brand and model

Samsung galaxy s24 ultra 1tb, SM-S928U1

### Stock or custom OS?

Stock

### Nextcloud android app version

33.0.0

### Nextcloud server version

32.0.4

### Using a reverse proxy?

No

### Android logs

Log file could not be located on my android file system

### Server error logs

```bash
{"reqId":"xnL31Bo1ERoLWD6YQeJS","level":3,"time":"2026-02-21T00:15:21+00:00","remoteAddr":"64.154.133.195","user":"pareshuser","app":"no app in context","method":"PUT","url":"/remote.php/dav/files/pareshuser/Family%20Photos/Google%20photos%20archive/Ritu_googlePhotos/Photos%20from%202024/20240306_191446.jpg","scriptName":"/remote.php","message":"Expected filesize of 3014960 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 2015232 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","userAgent":"Mozilla/5.0 (Windows) mirall/4.0.6 (build 20260122) (Nextcloud, windows-10.0.22621 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"32.0.4.1","clientReqId":"6724af7c-5bff-4600-a610-244eb5533fd0","exception":{"Exception":"Sabre\\DAV\\Exception\\BadRequest","Message":"Expected filesize of 3014960 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 2015232 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","Code":0,"Trace":[{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Directory.php","line":119,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":1098,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":504,"function":"createFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:PUT",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/Server.php","line":211,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":424,"function":"start","class":"OCA\\DAV\\Connector\\Sabre\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":22,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":151,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","Line":260,"message":"Expected filesize of 3014960 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 2015232 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.","exception":[],"CustomMessage":"Expected filesize of 3014960 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 2015232 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side."},"id":"6998fc001423c"}
```

### Additional information

I will try to locate the log file on my android phone and take a screenshot on the next occurrence since this happens every few days.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.