diff --git a/commons-api/src/test/resources/conf/portal/configuration.xml b/commons-api/src/test/resources/conf/portal/configuration.xml
index 6c7e4c6cc9..ed338b49e1 100644
--- a/commons-api/src/test/resources/conf/portal/configuration.xml
+++ b/commons-api/src/test/resources/conf/portal/configuration.xml
@@ -36,7 +36,7 @@
DefaultRequestHandler
register
- org.exoplatform.portal.application.DefaultRequestHandler
+ org.exoplatform.web.handler.DefaultRequestHandler
StaticResourceRequestHandler
diff --git a/commons-component-common/src/main/java/org/exoplatform/commons/utils/CommonsUtils.java b/commons-component-common/src/main/java/org/exoplatform/commons/utils/CommonsUtils.java
index 89c010bb4b..19aa94b8c5 100644
--- a/commons-component-common/src/main/java/org/exoplatform/commons/utils/CommonsUtils.java
+++ b/commons-component-common/src/main/java/org/exoplatform/commons/utils/CommonsUtils.java
@@ -223,7 +223,7 @@ public static SiteKey getCurrentSite() {
return pContext.getSiteKey();
} else {
UserPortalConfigService portalConfig = getService(UserPortalConfigService.class);
- return portalConfig == null ? null : SiteKey.portal(portalConfig.getDefaultPortal());
+ return portalConfig == null ? null : SiteKey.portal(portalConfig.getMetaPortal());
}
}
diff --git a/commons-component-common/src/test/java/org/exoplatform/commons/utils/CommonsUtilsMockingTest.java b/commons-component-common/src/test/java/org/exoplatform/commons/utils/CommonsUtilsMockingTest.java
index 5d7d8db20d..a2f4534f5c 100644
--- a/commons-component-common/src/test/java/org/exoplatform/commons/utils/CommonsUtilsMockingTest.java
+++ b/commons-component-common/src/test/java/org/exoplatform/commons/utils/CommonsUtilsMockingTest.java
@@ -62,7 +62,7 @@ public void afterTest() {
@Test
public void testShouldReturnDefaultPortalSite() {
UserPortalConfigService userPortalConfigService = mock(UserPortalConfigService.class);
- when(userPortalConfigService.getDefaultPortal()).thenReturn("intranet");
+ when(userPortalConfigService.getMetaPortal()).thenReturn("intranet");
COMMONS_UTILS.when(() -> CommonsUtils.getService(UserPortalConfigService.class)).thenReturn(userPortalConfigService);
COMMONS_UTILS.when(() -> CommonsUtils.getCurrentSite()).thenCallRealMethod();
@@ -75,7 +75,7 @@ public void testShouldReturnDefaultPortalSite() {
@Test
public void testShouldReturnCurrentSite() {
UserPortalConfigService userPortalConfig = mock(UserPortalConfigService.class);
- when(userPortalConfig.getDefaultPortal()).thenReturn("intranet");
+ when(userPortalConfig.getMetaPortal()).thenReturn("intranet");
PortalRequestContext requestContext = mock(PortalRequestContext.class);
@@ -102,7 +102,7 @@ public void testShouldReturnCurrentSite() {
public void testShouldReturnDefaultPortalOwner() {
UserPortalConfigService userPortalConfig = mock(UserPortalConfigService.class);
- when(userPortalConfig.getDefaultPortal()).thenReturn("intranet");
+ when(userPortalConfig.getMetaPortal()).thenReturn("intranet");
COMMONS_UTILS.when(() -> CommonsUtils.getService(UserPortalConfigService.class)).thenReturn(userPortalConfig);
COMMONS_UTILS.when(() -> CommonsUtils.getCurrentSite()).thenCallRealMethod();
@@ -113,7 +113,7 @@ public void testShouldReturnDefaultPortalOwner() {
public void testShouldReturnCurrentPortalOwner() {
UserPortalConfigService userPortalConfig = mock(UserPortalConfigService.class);
- when(userPortalConfig.getDefaultPortal()).thenReturn("intranet");
+ when(userPortalConfig.getMetaPortal()).thenReturn("intranet");
PortalRequestContext requestContext = mock(PortalRequestContext.class);