Skip to content

Commit

Permalink
Issue 52417: StackOverflowError analyzing queries with linked core sc…
Browse files Browse the repository at this point in the history
…hema (#2301)
  • Loading branch information
labkey-jeckels authored Feb 28, 2025
1 parent 9c1061d commit d6e224f
Showing 1 changed file with 16 additions and 0 deletions.
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

0 comments on commit d6e224f

Please sign in to comment.