Skip to content

[stable30] fix: override iTip Broker to fix several issues - #49268

Merged
SebastianKrupinski merged 2 commits into
stable30from
backport/48583/stable30
Nov 14, 2024
Merged

[stable30] fix: override iTip Broker to fix several issues#49268
SebastianKrupinski merged 2 commits into
stable30from
backport/48583/stable30

Conversation

@backportbot

@backportbotbackportbotBot commented Nov 13, 2024

Copy link
Copy Markdown

Backport of PR #48583

Requires: #49264

Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
$icalMsg = new VCalendar();

foreach ($calendar->select('VTIMEZONE') as $timezone) {
$icalMsg->add(clone $timezone);

Check notice

Code scanning / Psalm

MixedClone

Cannot clone mixed
// the attendee was removed and we need to send them a CANCEL message.
// Also If the meeting STATUS property was changed to CANCELLED
// we need to send the attendee a CANCEL message.
if (!$attendee['newInstances'] || $eventInfo['status'] === 'CANCELLED') {

Check notice

Code scanning / Psalm

RiskyTruthyFalsyComparison

Operand of type array<never, never>|mixed contains type mixed, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead.
$message->method = $icalMsg->METHOD = 'CANCEL';
$message->significantChange = true;
// clone base event
$event = clone $eventInfo['instances']['master'];

Check notice

Code scanning / Psalm

MixedClone

Cannot clone mixed
$oldEventInfo['significantChangeHash'] !== $eventInfo['significantChangeHash'];

foreach ($attendee['newInstances'] as $instanceId => $instanceInfo) {
$currentEvent = clone $eventInfo['instances'][$instanceId];

Check notice

Code scanning / Psalm

MixedClone

Cannot clone mixed
@SebastianKrupinski
SebastianKrupinski requested review from kesselb and removed request for miaulalalaNovember 13, 2024 23:39
@SebastianKrupinski
SebastianKrupinski merged commit 8378412 into stable30Nov 14, 2024
@SebastianKrupinski
SebastianKrupinski deleted the backport/48583/stable30 branch November 14, 2024 16:03
@skjnldsvskjnldsv mentioned this pull request Nov 27, 2024
6 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@kesselb@github-advanced-security@SebastianKrupinski