From 786e3297cb6d75e1215fe96c1fcbf929eb483f04 Mon Sep 17 00:00:00 2001 From: mkavish1407 Date: Tue, 21 May 2024 17:36:52 +0530 Subject: [PATCH] removing version info from VIPComponentFilter --- .../com/vmware/vipclient/i18n/filters/VIPComponentFilter.java | 1 - src/test/java/com/vmware/vip/i18n/VIPComponentFilterTest.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/vmware/vipclient/i18n/filters/VIPComponentFilter.java b/src/main/java/com/vmware/vipclient/i18n/filters/VIPComponentFilter.java index e983fc11b..fc3a1048c 100644 --- a/src/main/java/com/vmware/vipclient/i18n/filters/VIPComponentFilter.java +++ b/src/main/java/com/vmware/vipclient/i18n/filters/VIPComponentFilter.java @@ -52,7 +52,6 @@ public void doFilter(ServletRequest request, ServletResponse response, response.setContentType("text/javascript;charset=UTF-8"); os.write(("var translation = {" + "\"messages\" : " + messages + ", " + "\"productName\" : \"" + gc.getInstance().getProductName() - + "\", " + "\"version\" : \"" + gc.getInstance().getVersion() + "\", " + "\"vipServer\" : \"" + gc.getInstance().getVipServer() + "\", " + "\"pseudo\" : \"" + gc.getInstance().isPseudo() + "\", " diff --git a/src/test/java/com/vmware/vip/i18n/VIPComponentFilterTest.java b/src/test/java/com/vmware/vip/i18n/VIPComponentFilterTest.java index dddce9840..214e6eb6b 100644 --- a/src/test/java/com/vmware/vip/i18n/VIPComponentFilterTest.java +++ b/src/test/java/com/vmware/vip/i18n/VIPComponentFilterTest.java @@ -41,7 +41,7 @@ public void init() throws ServletException { public void testDoFilter() throws IOException, ServletException { String normalMsg = "var translation = {\"messages\" : {\"LeadTest\":\"[{0}] 测试警示\",\"table.host\":\"主机\",\"global_text_username\":\"用户名\"," + "\"sample.plural.key1\":\"{0, plural, other{\\\"{1}\\\"上有#个文件。}}\"}," + - " \"productName\" : \"JavaclientTest\", \"version\" : \"1.0.0\", \"vipServer\" : \"http://localhost:8099\", " + + " \"productName\" : \"JavaclientTest\", \"vipServer\" : \"http://localhost:8099\", " + "\"pseudo\" : \"false\", \"collectSource\" : \"false\"};"; String errorMsg = "{\"code\":400, \"message\": \"Request parameter 'locale' is required!\"}";