Skip to content

[stable30] fix(files_sharing): skip expiration notify for invalid share record - #51614

Merged
luka-nextcloud merged 1 commit into
stable30from
backport/50542/stable30
Mar 27, 2025
Merged

[stable30] fix(files_sharing): skip expiration notify for invalid share record#51614
luka-nextcloud merged 1 commit into
stable30from
backport/50542/stable30

Conversation

@backportbot

@backportbotbackportbotBot commented Mar 20, 2025

Copy link
Copy Markdown

Backport of #50542

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.

@backportbotbackportbotBot added bug 3. to review Waiting for reviews labels Mar 20, 2025
@backportbotbackportbotBot added this to the Nextcloud 30.0.9 milestone Mar 20, 2025
@luka-nextcloud
luka-nextcloudforce-pushed the backport/50542/stable30 branch from 4c227c3 to 83e2606CompareMarch 21, 2025 08:54
@luka-nextcloud
luka-nextcloud marked this pull request as ready for review March 21, 2025 08:54
if ($share->getExpirationDate() === null
|| $share->getExpirationDate()->getTimestamp() < $minTime->getTimestamp()
|| $share->getExpirationDate()->getTimestamp() > $maxTime->getTimestamp()) {
|| $share->getExpirationDate()->getTimestamp() > $maxTime->getTimestamp()

Check notice

Code scanning / Psalm

PossiblyNullReference

Cannot call method getTimestamp on possibly null value
Signed-off-by: Luka Trovic <luka@nextcloud.com>
@luka-nextcloud
luka-nextcloudforce-pushed the backport/50542/stable30 branch from fa0c906 to 986a570CompareMarch 27, 2025 11:56
@luka-nextcloud
luka-nextcloud merged commit 713ead5 into stable30Mar 27, 2025
@luka-nextcloud
luka-nextcloud deleted the backport/50542/stable30 branch March 27, 2025 16:24
@AltahrimAltahrim mentioned this pull request Apr 3, 2025
5 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsbug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@provokateurin@github-advanced-security@luka-nextcloud