Skip to content

Allow share expiry dates lower than enforced limits - #40927

Merged
nfebe merged 1 commit into
masterfrom
allow-expiry-dates-less-than-enforced-limit
Oct 16, 2023
Merged

Allow share expiry dates lower than enforced limits#40927
nfebe merged 1 commit into
masterfrom
allow-expiry-dates-less-than-enforced-limit

Conversation

@nfebe

Copy link
Copy Markdown
Contributor

Previously, users could change the share expiry date up to the enforced maximum.

The new share flow imposed the enforced share expiry date maximum literally and did not allow even dates lower than the maximum enforced.

That does not make much sense, if the enforced expiry date is 30 days from creation date, then it's logical to allow users set the date to anything less than 30 days from the creation date.

Resolves : No github issue

@nfebenfebe added this to the Nextcloud 27.1.4 milestone Oct 15, 2023
@nfebe
nfebeforce-pushed the allow-expiry-dates-less-than-enforced-limit branch from b24b3aa to 39c8762CompareOctober 15, 2023 21:15
Previously, users could change the share expiry date up
to the enforced maximum.
The new share flow imposed the enforced share expiry
date maximum literally and did not allow even dates
lower than the maximum enforced.
That does not make much sense, if the enforced expiry date is 30
days from creation date, then it's logical to allow users set the
date to anything less than 30 days from the creation date.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
@nfebe
nfebeforce-pushed the allow-expiry-dates-less-than-enforced-limit branch from 39c8762 to 9757e68CompareOctober 16, 2023 06:06
@nfebe
nfebe enabled auto-merge October 16, 2023 09:20
@nfebe
nfebe merged commit c932c94 into masterOct 16, 2023
@nfebe
nfebe deleted the allow-expiry-dates-less-than-enforced-limit branch October 16, 2023 10:37
@come-nc

Copy link
Copy Markdown
Contributor

I tested and I confirm #40928 (review) , this change breaks default date handling for remote and public shares, the default date is use there as a maximum even if enforced checkbox is not checked for those types of shares.
For remote shares it also seem to not even be used as default value.

@nfebe

Copy link
Copy Markdown
ContributorAuthor

@come-nc nice catch : #40933

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsfeature: sharing

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants

@nfebe@come-nc@susnux@sorbaugh@nickvergessen