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

Issue 52417: StackOverflowError analyzing queries with linked core schema #2301

Merged
merged 2 commits into from
Feb 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/org/labkey/test/tests/LinkedSchemaTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,22 @@ void verifyLinkedSchemaTemplateOverride()
assertEquals("Dave", table.getDataAsText(1, "Crazy " + D_PEOPLE_METADATA_TITLE));
}

@Test
public void testCoreLinkedSchema()
{
// Coverage for Issue 52417: StackOverflowError trying to analyze queries in container with linked schema over Core
String linkedSchemaName = "linkedCore";
String sourceContainerPath = "/" + getProjectName() + "/" + STUDY_FOLDER;

log("Create the linked schema on core");
_schemaHelper.createLinkedSchema(sourceContainerPath, linkedSchemaName, sourceContainerPath, null, "core", null, null);

goToSchemaBrowser();
DataRegionTable table = viewQueryData(linkedSchemaName, "Modules");
List<String> colNames = table.getColumnNames();
assertTrue("Columns should have included 'Name': " + colNames, colNames.contains("Name"));
}

/*
Test coverage : Issue 45347: Audit table data not available in linked schema
*/
Expand Down