Skip to content

fix(caldav): When message is a reply compare the message sender not the recipient - #44893

Merged
kesselb merged 1 commit into
masterfrom
fix/issue-43115
Jun 26, 2024
Merged

fix(caldav): When message is a reply compare the message sender not the recipient#44893
kesselb merged 1 commit into
masterfrom
fix/issue-43115

Conversation

@SebastianKrupinski

Copy link
Copy Markdown
Contributor

Summary

When message is a reply compare the message sender not the recipient.

@solracsfsolracsf changed the title fix: for issue #43115fix(caldav): When message is a reply compare the message sender not the recipientApr 17, 2024
@susnuxsusnux added this to the Nextcloud 30 milestone Apr 18, 2024

@ChristophWurstChristophWurst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested & works

Could you please extend \OCA\DAV\Tests\unit\CalDAV\Schedule\IMipPluginTest for three tests that cover the three possible paths of \OCA\DAV\CalDAV\Schedule\IMipService::getCurrentAttendee? 1. Reply, 2. invite, 3. no match.

Comment on lines +575 to +576
}
elseif (strcasecmp($attendee->getValue(), $iTipMessage->recipient) === 0) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
elseif (strcasecmp($attendee->getValue(), $iTipMessage->recipient) === 0) {
} elseif (strcasecmp($attendee->getValue(), $iTipMessage->recipient) === 0) {

@ChristophWurst

Copy link
Copy Markdown
Member

/backport to stable29

@ChristophWurst

Copy link
Copy Markdown
Member

/backport to stable28

@ChristophWurst

ChristophWurst commented Apr 23, 2024

Copy link
Copy Markdown
Member

Could you please extend \OCA\DAV\Tests\unit\CalDAV\Schedule\IMipPluginTest for three tests that cover the three possible paths of \OCA\DAV\CalDAV\Schedule\IMipService::getCurrentAttendee? 1. Reply, 2. invite, 3. no match.

I'm sorry, I mixed up the classes. We want to unit test \OCA\DAV\CalDAV\Schedule\IMipService::getCurrentAttendee so the tests will go into \OCA\DAV\Tests\unit\CalDAV\Schedule\IMipServiceTest

Move the tests please

@kesselb

Copy link
Copy Markdown
Contributor

/backport to stable27

…he recipient
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsbug

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[Bug]: Nextcloud 28 don't send notification when accept a meeting

5 participants

@SebastianKrupinski@ChristophWurst@kesselb@miaulalala@susnux