Skip to content

Fix ListTest.testAuditDetailRejectsRowIdFromOtherList#3111

Merged
labkey-bpatel merged 2 commits into
release26.3-SNAPSHOTfrom
26.3_fb_fix_idor_test_row_lookup
Jul 15, 2026
Merged

Fix ListTest.testAuditDetailRejectsRowIdFromOtherList#3111
labkey-bpatel merged 2 commits into
release26.3-SNAPSHOTfrom
26.3_fb_fix_idor_test_row_lookup

Conversation

@labkey-bpatel

Copy link
Copy Markdown
Contributor

Rationale

Regression test failure for list audit detail:
https://teamcity.labkey.org/buildConfiguration/LabKey_263Release_Community_DailyPostgres2/4091141?buildTab=tests&name=org.labkey.test.tests.list.ListTest.testAuditDetailRejectsRowIdFromOtherList

Related Pull Requests

Changes

  • ListTest.java:906 — use the (columnIdentifier, value) overload of getRowIndex against NAME_FIELD instead of the PK-based getRowIndex(String).
  • ListTest.java:937-943 — look up the list's ListId via SelectRowsCommand("ListManager", "ListManager")

getRowIndex(String) matches on primary-key value (the .select checkbox),
not on a column value. LIST_Y is an IntList keyed on Key, so passing the
Name value returned -1 and blew up in DataRegionTable.updateLink. Use the
(columnIdentifier, value) overload against NAME_FIELD instead.
exp schema has no Lists query; the list module exposes list metadata
through ListManager.ListManager. Matches the resolveListId pattern in
ListMoveRowsTest.
@labkey-bpatel labkey-bpatel requested a review from DariaBod July 15, 2026 18:44
@labkey-bpatel labkey-bpatel merged commit 2015510 into release26.3-SNAPSHOT Jul 15, 2026
7 checks passed
@labkey-bpatel labkey-bpatel deleted the 26.3_fb_fix_idor_test_row_lookup branch July 15, 2026 20:57
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.

2 participants