nextcloud / nextcloud/android

App crashes when opening folder after resetting encryption and re-encrypting (metadata is null exception)

Open
#15,404 7 comments 0 reactions 1 assignee Claimed by @alperozturk96 View on GitHub
bug feature: encryption (client-side)
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. Reset encryption in web app
2. open android app
3. set folder as encrypted
4. confirm mnemonics
5. tap/open encrypted folder
6. crash

### Expected behaviour

Everything up to point 5
Actually opening showing the encrypted folder

### Actual behaviour

App crashes

### Android version

16

### Device brand and model

Pixel 8 Pro

### Stock or custom OS?

Stock

### Nextcloud android app version

3.32.2

### Nextcloud server version

30.0.12 (hetzner saas)

### Using a reverse proxy?

I don't know

### Android logs

### Cause of error
```java
Exception in thread "Thread-31" java.lang.IllegalStateException: metadata is null!
at com.owncloud.android.operations.RefreshFolderOperation.synchronizeData(RefreshFolderOperation.java:513)
at com.owncloud.android.operations.RefreshFolderOperation.fetchAndSyncRemoteFolder(RefreshFolderOperation.java:433)
at com.owncloud.android.operations.RefreshFolderOperation.run(RefreshFolderOperation.java:246)
at com.owncloud.android.lib.common.operations.RemoteOperation.run(RemoteOperation.java:387)
at java.lang.Thread.run(Thread.java:1119)

```

### App information
* ID: `com.nextcloud.client`
* Version: `30320290`
* Build flavor: `gplay`

### Device information
* Brand: `google`
* Device: `husky`
* Model: `Pixel 8 Pro`
* Id: `BP2A.250805.005`
* Product: `husky`

### Firmware
* SDK: `36`
* Release: `16`
* Incremental: `13691446`

### Server error logs

```bash

```

### Additional information

I'm not on a preview version or anything so I don't know where the logs are.
I'm using hetzner as host.

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.