MINOR: Fix App Insights not processing URL Encoded Data Assets (#18613)

* use 'URLDecoder.decode' before getting entity by name

* Update Test to cover this scenario
This commit is contained in:
IceS2 2024-11-13 16:14:56 +01:00 committed by GitHub
parent 7caec17162
commit 128e4e8e93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ public class WebAnalyticsEntityViewProcessor
EntityInterface entity =
Entity.getEntityByName(
URLDecoder.decode(entityType, StandardCharsets.UTF_8),
entityFqn,
URLDecoder.decode(entityFqn, StandardCharsets.UTF_8),
"*",
Include.NON_DELETED,
true);

View File

@ -140,7 +140,7 @@ public class AppsResourceTest extends EntityResourceTest<App, CreateApp> {
DatabaseService databaseService =
databaseServiceResourceTest.createEntity(
databaseServiceResourceTest
.createRequest("DI_Test_Snowflake")
.createRequest("DI Test Snowflake")
.withServiceType(CreateDatabaseService.DatabaseServiceType.Snowflake),
ADMIN_AUTH_HEADERS);