nextcloud / nextcloud/android

E2EE client not updated after E2EE reset on server

Open
#12,682 0 comments 0 reactions 0 assignees View on GitHub
bug E2E feature: encryption (client-side) stable-3.29
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. Activate E2EE in android client / have it already activated and use it in android client to "cache/ save" the keys locally
2. Reset E2EE on the server (Settings -> Security -> End-to-end encryption)
3. Use the client E2EE encryption to encrypt for example a new folder

### Expected behaviour

After step 3 should generate new key pair and should generate a new passphrase because E2EE was reset and keys on server were deleted

### Actual behaviour

App uses local keys and not generates new ones as it should. The E2EE is on the server side not activated (eg. resetting is not possible anymore) but client behaves like it is activated.
[Screen_recording_20240314_142803.webm](https://github.com/nextcloud/android/assets/43114340/cebc6a4f-26be-40c8-b082-d9c6d9bd8771)
Explanation of the video: After 15 sec I reset e2ee, folder is deleted as it should be but encryption a new folder works fine while server has no e2ee keys

### Android version

12

### Device brand and model

Emulator

### Stock or custom OS?

Stock

### Nextcloud android app version

current master

### Nextcloud server version

27

### Using a reverse proxy?

I don't know

### Android logs

_No response_

### Server error logs

_No response_

### Additional information

I think e2ee implementation is missing a check before doing anything to see if server still has e2ee keys and if they are the same as the local ones.

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.