diff --git a/client/src/test/java/com/alibaba/nacos/client/naming/remote/AbstractNamingClientProxyTest.java b/client/src/test/java/com/alibaba/nacos/client/naming/remote/AbstractNamingClientProxyTest.java index eedb80855c6..96e237272ec 100644 --- a/client/src/test/java/com/alibaba/nacos/client/naming/remote/AbstractNamingClientProxyTest.java +++ b/client/src/test/java/com/alibaba/nacos/client/naming/remote/AbstractNamingClientProxyTest.java @@ -51,6 +51,9 @@ public class AbstractNamingClientProxyTest { @Mock private SecurityProxy sc; + /** + * test get security headers for accessToken. + */ @Test public void testGetSecurityHeadersForAccessToken() { AbstractNamingClientProxy proxy = new MockNamingClientProxy(sc); @@ -64,6 +67,10 @@ public void testGetSecurityHeadersForAccessToken() { Assert.assertEquals(AppNameUtils.getAppName(), securityHeaders.get("app")); } + /** + * get security headers for ram. + * @throws Exception exception + */ @Test public void testGetSecurityHeadersForRam() throws Exception { String ak = "aa"; diff --git a/console-ui/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js b/console-ui/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js index ca5bb0aff8d..70821cb6de4 100644 --- a/console-ui/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js +++ b/console-ui/src/pages/ConfigurationManagement/ConfigurationManagement/ConfigurationManagement.js @@ -989,7 +989,7 @@ class ConfigurationManagement extends React.Component { accept: 'application/zip', action: `v1/cs/configs?import=true&namespace=${getParams( 'namespace' - )}&accessToken=${accessToken}&username=${username}`, + )}&accessToken=${accessToken}&username=${username}&tenant=${getParams('namespace')}`, headers: Object.assign({}, {}, { accessToken }), data: { policy: self.field.getValue('sameConfigPolicy'), diff --git a/console/src/main/resources/static/index.html b/console/src/main/resources/static/index.html index 0c46eead01d..29cfd5d0fc6 100644 --- a/console/src/main/resources/static/index.html +++ b/console/src/main/resources/static/index.html @@ -35,7 +35,7 @@ - +
@@ -56,6 +56,6 @@ - +