-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DoorLock: Fix incorrect CredentialIndex on LockOperation events initated remotely (#24985) #24986
DoorLock: Fix incorrect CredentialIndex on LockOperation events initated remotely (#24985) #24986
Conversation
PR #24986: Size comparison from 5ad70f6 to 6e894d6 Increases (1 build for cc32xx)
Full report (1 build for cc32xx)
|
@@ -1743,7 +1743,7 @@ bool DoorLockServer::findUserIndexByCredential(chip::EndpointId endpointId, Cred | |||
if (credentialInfo.credentialData.data_equal(credentialData)) | |||
{ | |||
userIndex = i; | |||
credentialIndex = i; | |||
credentialIndex = credential.CredentialIndex; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch, but can we please add a YAML test for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YAML test has been updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it hasn't. What was updated was:
- One of the certification tests. Those should not get updated without corresponding test plan changes.
- Not one of the tests that actually runs anything automated. What should have been done is either updating src/app/tests/suites/DL_UsersAndCredentials.yaml or adding a new test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filed #24992 to track this....
PR #24986: Size comparison from 5ad70f6 to 17bb586 Increases (1 build for cc32xx)
Decreases (1 build for cc32xx)
Full report (1 build for cc32xx)
|
…ted remotely (project-chip#24985) (project-chip#24986) * DoorLock: Fix incorrect CredentialIndex on LockOperation events initiated remotely (project-chip#24985) * Update YAML tests
LockOperation events produced in response to a Lock or Unlock operation initiated via Matter (Remote) include the incorrect credentialIndex in the events.
Fixes #24985