Skip to content
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

Conversation

jrhees-cae
Copy link
Contributor

LockOperation events produced in response to a Lock or Unlock operation initiated via Matter (Remote) include the incorrect credentialIndex in the events.

Fixes #24985

@github-actions
Copy link

PR #24986: Size comparison from 5ad70f6 to 6e894d6

Increases (1 build for cc32xx)
platform target config section 5ad70f6 6e894d6 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 20194394 20194395 1 0.0
.debug_line 2649797 2649800 3 0.0
Full report (1 build for cc32xx)
platform target config section 5ad70f6 6e894d6 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 640233 640233 0 0.0
(read/write) 204084 204084 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197488 197488 0 0.0
.comment 194 194 0 0.0
.data 1476 1476 0 0.0
.debug_abbrev 928439 928439 0 0.0
.debug_aranges 87352 87352 0 0.0
.debug_frame 299840 299840 0 0.0
.debug_info 20194394 20194395 1 0.0
.debug_line 2649797 2649800 3 0.0
.debug_loc 2785922 2785922 0 0.0
.debug_ranges 280720 280720 0 0.0
.debug_str 3001474 3001474 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105585 105585 0 0.0
.shstrtab 232 232 0 0.0
.stab 204 204 0 0.0
.stabstr 441 441 0 0.0
.stack 2048 2048 0 0.0
.strtab 375840 375840 0 0.0
.symtab 255856 255856 0 0.0
.text 532524 532524 0 0.0

@@ -1743,7 +1743,7 @@ bool DoorLockServer::findUserIndexByCredential(chip::EndpointId endpointId, Cred
if (credentialInfo.credentialData.data_equal(credentialData))
{
userIndex = i;
credentialIndex = i;
credentialIndex = credential.CredentialIndex;
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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:

  1. One of the certification tests. Those should not get updated without corresponding test plan changes.
  2. 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.

Copy link
Contributor

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....

@github-actions github-actions bot added the tests label Feb 10, 2023
@github-actions
Copy link

PR #24986: Size comparison from 5ad70f6 to 17bb586

Increases (1 build for cc32xx)
platform target config section 5ad70f6 17bb586 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 20194394 20194444 50 0.0
.debug_line 2649797 2649825 28 0.0
.debug_loc 2785922 2785969 47 0.0
Decreases (1 build for cc32xx)
platform target config section 5ad70f6 17bb586 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_ranges 280720 280696 -24 -0.0
Full report (1 build for cc32xx)
platform target config section 5ad70f6 17bb586 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 640233 640233 0 0.0
(read/write) 204084 204084 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197488 197488 0 0.0
.comment 194 194 0 0.0
.data 1476 1476 0 0.0
.debug_abbrev 928439 928439 0 0.0
.debug_aranges 87352 87352 0 0.0
.debug_frame 299840 299840 0 0.0
.debug_info 20194394 20194444 50 0.0
.debug_line 2649797 2649825 28 0.0
.debug_loc 2785922 2785969 47 0.0
.debug_ranges 280720 280696 -24 -0.0
.debug_str 3001474 3001474 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105585 105585 0 0.0
.shstrtab 232 232 0 0.0
.stab 204 204 0 0.0
.stabstr 441 441 0 0.0
.stack 2048 2048 0 0.0
.strtab 375840 375840 0 0.0
.symtab 255856 255856 0 0.0
.text 532524 532524 0 0.0

@yufengwangca yufengwangca merged commit 9e14525 into project-chip:master Feb 11, 2023
lecndav pushed a commit to lecndav/connectedhomeip that referenced this pull request Mar 22, 2023
…ted remotely (project-chip#24985) (project-chip#24986)

* DoorLock: Fix incorrect CredentialIndex on LockOperation events initiated remotely (project-chip#24985)

* Update YAML tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Doorlock: CredentialIndex in LockOperationEvent is incorrect for Remote operation
3 participants