Skip to content

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

Merged
provokateurin merged 1 commit into
stable29from
backport/50542/stable29
Mar 27, 2025
Merged

[stable29] fix(files_sharing): skip expiration notify for invalid share record#51613
provokateurin merged 1 commit into
stable29from
backport/50542/stable29

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 29.0.15 milestone Mar 20, 2025
@luka-nextcloud
luka-nextcloudforce-pushed the backport/50542/stable29 branch 2 times, most recently from 29752bf to b70605fCompareMarch 21, 2025 08:46
@luka-nextcloud
luka-nextcloud marked this pull request as ready for review March 21, 2025 08:47
@AndyScherzinger
AndyScherzingerforce-pushed the backport/50542/stable29 branch 3 times, most recently from 20dc3d5 to a5b26eaCompareMarch 23, 2025 16:59
@luka-nextcloud
luka-nextcloudforce-pushed the backport/50542/stable29 branch 2 times, most recently from 4bd7738 to a5070edCompareMarch 27, 2025 08:54
@nickvergessen

Copy link
Copy Markdown
Member

[skip ci] needs to be removed from last commit

Signed-off-by: Luka Trovic <luka@nextcloud.com>
@luka-nextcloud
luka-nextcloudforce-pushed the backport/50542/stable29 branch from a5070ed to 8068ee8CompareMarch 27, 2025 10:24
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
@provokateurin
provokateurin merged commit 909e7b4 into stable29Mar 27, 2025
@provokateurin
provokateurin deleted the backport/50542/stable29 branch March 27, 2025 10:51
@AltahrimAltahrim mentioned this pull request Apr 3, 2025
7 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.

5 participants

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