Skip to content

Match the replying attendee case-insensitively - #817

Open
kabeer7121 wants to merge 1 commit into
sabre-io:masterfrom
kabeer7121:fix/reply-attendee-case
Open

kabeer7121 wants to merge 1 commit into
sabre-io:masterfrom
kabeer7121:fix/reply-attendee-case

Conversation

@kabeer7121

Copy link
Copy Markdown

When a REPLY comes in, processMessageReply() looks for the existing attendee with a strict === on the address. Email addresses are case-insensitive in practice, so if the invite went to mailto:Foo@Example.org and the reply comes back as mailto:foo@example.org, the existing attendee is not found. The broker then adds a second attendee as a party crasher and the original one stays at NEEDS-ACTION.

This changes both lookups (the existing instance and the newly created exception) to compare case-insensitively, the same way the ORGANIZER check in parseEventInfo() already does since #435.

Added two tests to BrokerProcessReplyTest for the two paths. They fail without the change; the full test suite, phpstan and php-cs-fixer pass locally.

This looks like the cause of nextcloud/server#66610, where Outlook replies to attendees entered with uppercase letters never update the participation status.

processMessageReply() compared the attendee address of a REPLY with a strict ===, so an invite sent to mailto:Foo@Example.org and answered as mailto:foo@example.org did not update the existing attendee. A second attendee was added as a party crasher instead and the original stayed NEEDS-ACTION. Compare the addresses the same way the ORGANIZER check already does.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant