Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable29] Respect empty expiryDate value in server #45483

Merged
merged 3 commits into from
May 31, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented May 23, 2024

Backport of #44485

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@Fenn-CS Fenn-CS marked this pull request as ready for review May 23, 2024 15:15
@Fenn-CS Fenn-CS enabled auto-merge May 23, 2024 15:15
lib/private/Share20/Share.php Fixed Show fixed Hide fixed
lib/private/Share20/Share.php Fixed Show fixed Hide fixed
@Fenn-CS Fenn-CS linked an issue May 27, 2024 that may be closed by this pull request
@Fenn-CS Fenn-CS force-pushed the backport/44485/stable29 branch 3 times, most recently from 29630de to ae4a18f Compare May 29, 2024 10:37
If `expireDate` is an empty string and not `null` then the server should not set a default.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
- Verify that explicitly sending empty `expireDate` param to server overwrite default

and sets not expiry date, if non is enforced.

- Update tests to avoid converting empty string to date.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Copy link
Contributor

@Antreesy Antreesy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code matches original PR + fix

@Fenn-CS Fenn-CS merged commit 806e390 into stable29 May 31, 2024
168 checks passed
@Fenn-CS Fenn-CS deleted the backport/44485/stable29 branch May 31, 2024 12:12
@Fenn-CS
Copy link
Contributor

Fenn-CS commented May 31, 2024

/backport to stable28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default share expiration cannot be removed when creating a share
3 participants