diff --git a/core/pom.xml b/core/pom.xml
index f34b8e92e..02f1a09f1 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -242,6 +242,16 @@
spring-web
test
+
+ org.springframework
+ spring-context
+ test
+
+
+ org.springframework
+ spring-context-support
+ test
+
junit
diff --git a/core/src/test/java/org/apache/struts2/result/PlainResultTest.java b/core/src/test/java/org/apache/struts2/result/PlainResultTest.java
index 3c4264f72..995e1aac1 100644
--- a/core/src/test/java/org/apache/struts2/result/PlainResultTest.java
+++ b/core/src/test/java/org/apache/struts2/result/PlainResultTest.java
@@ -58,7 +58,7 @@ public class PlainResultTest extends StrutsInternalTestCase {
result.execute(invocation);
assertEquals("{ 'value': 'test' }", response.getContentAsString());
- assertEquals("application/json", response.getContentType());
+ assertEquals("application/json;charset=UTF-8", response.getContentType());
}
public void testWriteContentTypeCsvWithCookie() throws Exception {
@@ -72,7 +72,7 @@ public class PlainResultTest extends StrutsInternalTestCase {
result.execute(invocation);
assertEquals("name;value\nline;1\nline;2", response.getContentAsString());
- assertEquals("text/csv", response.getContentType());
+ assertEquals("text/csv;charset=UTF-8", response.getContentType());
}
public void testHeaders() throws Exception {
@@ -146,4 +146,4 @@ public class PlainResultTest extends StrutsInternalTestCase {
ActionContext.getContext().withServletResponse(response).withActionInvocation(invocation);
}
-}
\ No newline at end of file
+}
diff --git a/plugins/portlet-mocks/pom.xml b/plugins/portlet-mocks/pom.xml
index c516946d8..806ed3284 100644
--- a/plugins/portlet-mocks/pom.xml
+++ b/plugins/portlet-mocks/pom.xml
@@ -51,6 +51,7 @@
+ 4.3.30.RELEASE
UTF-8
diff --git a/plugins/portlet/pom.xml b/plugins/portlet/pom.xml
index 2c12c7c2c..47f4a58da 100644
--- a/plugins/portlet/pom.xml
+++ b/plugins/portlet/pom.xml
@@ -130,11 +130,7 @@
spring-test
true
-
- org.springframework
- spring-webmvc-portlet
- true
-
+
commons-fileupload
commons-fileupload
@@ -143,6 +139,7 @@
+ 4.3.30.RELEASE
UTF-8
diff --git a/pom.xml b/pom.xml
index 9932e54e2..83015b061 100644
--- a/pom.xml
+++ b/pom.xml
@@ -115,7 +115,7 @@
2.17.2
3.3.2
1.7.32
- 4.3.30.RELEASE
+ 5.3.20
3.0.8
1.0.7
3.0.0-M4
@@ -988,11 +988,6 @@
spring-core
${spring.platformVersion}
-
- org.springframework
- spring-webmvc-portlet
- ${spring.platformVersion}
-
org.springframework
spring-context