Default expiration date not shown when first creating a share
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 2.5k
- Forks
- 1k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 13
Description
Steps to reproduce
- Let the admin configure a "default expiration date for shares" under
/settings/admin/sharing, e.g. to 7 days. - Open the iOS Files app
- Click on the share icon next to a file
- Two options with the same bug:
a. Either click "Share link"
b. Or search for a user and select them
Expected behaviour
The "Set expiration date" field should have the date set, e.g. to 7 days in the future.
Actual behaviour
The "Set expiration date" field is empty.
Only after saving the share the expiration date is silently set. This is confusing to the user, because it is not transparent why the share suddenly has an expiraton date.
Screenshots
Logs
n/a
Reasoning or why should it be changed/implemented?
The current, buggy behaviour is confusing. It's also inconsistent with the web client, where this bug has been fixed: https://github.com/nextcloud/server/issues/40612
Environment data
iOS version: e.g. iPadOS 17.2
Nextcloud iOS app version: 4.9.6.1
Server operating system: Ubuntu
Web server: Apache
Database: MariaDB
PHP version: 8.2
Nextcloud version: 28.0.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the two share-creation flows reached from the iOS Files app: “Share link” and selecting a user. Compare how the configured default expiration is represented with the web client behavior described in server issue 40612; done means the “Set expiration date” field visibly shows the configured future date before saving in both flows.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100