Repository navigation
Match the replying attendee case-insensitively - #817
Open
kabeer7121 wants to merge 1 commit into
Open
kabeer7121 wants to merge 1 commit into
kabeer7121 wants to merge 1 commit into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 tomailto:Foo@Example.organd the reply comes back asmailto: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
BrokerProcessReplyTestfor 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.