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

Fixed share link expiration box being ineditable and always attempting to set invalid date #4543

Merged
merged 1 commit into from
May 16, 2022

Conversation

claucambra
Copy link
Collaborator

@claucambra claucambra commented May 16, 2022

This PR fixes a bug where on servers with no set share link expire days, the date input box for the expiry of the link would have its maximum date set to the current date, which is considered invalid by the server. With a higher minimum than maximum date the box would also be uneditable, preventing the user from fixing the date.

This PR fixes this by only applying a maximum date if the server has a set number of days to expire (i.e. if this value is larger than 0),

Fixes #4068

@claucambra claucambra self-assigned this May 16, 2022
… invalid date

Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
@claucambra claucambra force-pushed the bugfix/share-link-expiry branch from 8092ecf to 31f3800 Compare May 16, 2022 16:51
@sonarcloud
Copy link

sonarcloud bot commented May 16, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@claucambra claucambra merged commit 522d802 into master May 16, 2022
@claucambra claucambra deleted the bugfix/share-link-expiry branch May 16, 2022 18:44
@claucambra
Copy link
Collaborator Author

/backport to stable-3.5

@nextcloud-desktop-bot
Copy link

AppImage file: Nextcloud-PR-4543-31f3800d0d6dcae24d7f00edafe48b08c2deb68e-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

@mgallien mgallien added this to the 3.6.0 milestone May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Link expiration date non changeable - Ubuntu
4 participants