Skip to content

fix(sharing): parse received timestamp from expiration date#9882

Merged
mgallien merged 1 commit intomasterfrom
bugfix/9859/sharedialog-parse-expiredate
Apr 22, 2026
Merged

fix(sharing): parse received timestamp from expiration date#9882
mgallien merged 1 commit intomasterfrom
bugfix/9859/sharedialog-parse-expiredate

Conversation

@nilsding
Copy link
Copy Markdown
Member

Server version >= 33.0.1 changed the behaviour of the expiration date: instead of expiring shares at the beginning of the day, they now expire at the end of the day.

The client previously relied on the expiry time being defined as 00:00:00, this leads to the date unable to be parsed with the expiry time set to 23:59:59.
Solution: just™ parse the entire time returned from the server as well! The client sets the expiration date only as YYYY-MM-DD anyway, so it does not need to care about the time suggested by the server at all ...

Resolves #9859

@nilsding nilsding added this to the 34.0.0 milestone Apr 21, 2026
@nilsding nilsding self-assigned this Apr 21, 2026
@nilsding nilsding added bug feature: 👥 sharing Sharing dialog and functionalities. 3. to review labels Apr 21, 2026
@nilsding
Copy link
Copy Markdown
Member Author

/backport to stable-33.0 please

@nilsding
Copy link
Copy Markdown
Member Author

/backport to stable-4.0 please

@nilsding nilsding enabled auto-merge April 22, 2026 07:17
@nilsding nilsding force-pushed the bugfix/9859/sharedialog-parse-expiredate branch from 1633693 to ec90cb8 Compare April 22, 2026 07:17
Server version >= 33.0.1 changed the behaviour of the expiration date:
instead of expiring shares at the beginning of the day, they now expire
at the end of the day.

The client previously relied on the expiry time being defined as
`00:00:00`, this leads to the date unable to be parsed with the expiry
time set to `23:59:59`.
Solution: just™ parse the entire time returned from the server as well!
The client sets the expiration date only as `YYYY-MM-DD` anyway, so it
does not need to care about the time suggested by the server at all ...

Resolves #9859

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
@nilsding nilsding force-pushed the bugfix/9859/sharedialog-parse-expiredate branch from ec90cb8 to 7ce6dd9 Compare April 22, 2026 07:28
@github-actions
Copy link
Copy Markdown

Artifact containing the AppImage: nextcloud-appimage-pr-9882.zip

Digest: sha256:462fd0fc508a7dfbb2a47a81ece2879bfbceaa0e2197a8a27db1c597653cec37

To test this change/fix you can download the above artifact file, unzip it, and run it.

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

@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
E Maintainability Rating on New Code (required ≥ A)
20 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@mgallien mgallien disabled auto-merge April 22, 2026 08:19
@mgallien
Copy link
Copy Markdown
Collaborator

going to ignore broken CI unrelated macOS missing check

@mgallien mgallien merged commit 5f1b174 into master Apr 22, 2026
28 of 33 checks passed
@mgallien mgallien deleted the bugfix/9859/sharedialog-parse-expiredate branch April 22, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review bug feature: 👥 sharing Sharing dialog and functionalities.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Share dialog hangs with infinite spinner when clicking "Set expiration date" checkbox (Windows, Qt FluentWinUI3 style)

3 participants