nextcloud / nextcloud/android

Prevent enforced password and expiration date removal when editing a share

Open
#13,186 0 comments 0 reactions 0 assignees View on GitHub
bug feature: sharing 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. Setup your server to enforce password protection and expiration date on shares
2. Create a share
3. Edit a share

### Expected behaviour

Based on the capabilities (I guess ?) from the server, we should not be able to remove password protect and expiration date in this view :
![Screenshot_20240626_085225_Nextcloud](https://github.com/nextcloud/android/assets/13290839/5e1328fa-fbd8-464f-a877-658e279e18a7)

### Actual behaviour

Instead we can remove the password but then when sharing we get the expected following error :
![Screenshot_20240626_092206_Nextcloud](https://github.com/nextcloud/android/assets/13290839/89189189-773d-4003-bfec-7d26dd8426d5)
Instead we can remove the expiration date but then when sharing we get the expected following error :
![Screenshot_20240626_092231_Nextcloud](https://github.com/nextcloud/android/assets/13290839/23aba284-8559-45ff-994b-55ef0a62bf2f)

### Android version

14

### Device brand and model

Samsung S23

### Stock or custom OS?

Stock

### Nextcloud android app version

3.29.0

### Nextcloud server version

26.0.2.43-r

### Using a reverse proxy?

No

### Android logs

_No response_

### Server error logs

_No response_

### Additional information

_No response_

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.