mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-06 16:18:05 +00:00
Fix #7319: For non admin users with ViewAll or ViewTests permissions testCaseResource listing with testSuiteID is returning null (#7320)
This commit is contained in:
parent
fc7510ff36
commit
1d56705f5b
@ -97,6 +97,7 @@ public class TestCaseResourceContext implements ResourceContextInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static EntityInterface resolveEntityByName(String fqn) throws IOException {
|
private static EntityInterface resolveEntityByName(String fqn) throws IOException {
|
||||||
|
if (fqn == null) return null;
|
||||||
EntityRepository<TestCase> dao = Entity.getEntityRepository(Entity.TEST_CASE);
|
EntityRepository<TestCase> dao = Entity.getEntityRepository(Entity.TEST_CASE);
|
||||||
TestCase testCase = dao.getByName(null, fqn, dao.getFields("entityLink"), Include.ALL);
|
TestCase testCase = dao.getByName(null, fqn, dao.getFields("entityLink"), Include.ALL);
|
||||||
return resolveEntityByEntityLink(EntityLink.parse(testCase.getEntityLink()));
|
return resolveEntityByEntityLink(EntityLink.parse(testCase.getEntityLink()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user