Skip to content

Commit

Permalink
#20629 : Back-porting code changes to dotCMS 5.3.8.6 LTS release.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcastro-dotcms committed Aug 15, 2021
1 parent c150d50 commit a9f3836
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dotCMS/src/main/java/com/dotcms/ema/EMAWebInterceptor.java
Expand Up @@ -4,6 +4,7 @@
import com.dotmarketing.exception.DotDataException;
import com.dotmarketing.exception.DotSecurityException;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -99,7 +100,7 @@ public boolean afterIntercept(final HttpServletRequest request, final HttpServle
final ProxyResponse pResponse = proxy.sendPost(proxyUrl.get(), params);

if (pResponse.getResponseCode() == 200) {
responseStringBuilder.append(pResponse.getResponse());
responseStringBuilder.append(new String(pResponse.getResponse(), StandardCharsets.UTF_8.name()));
}else {
responseStringBuilder.append("<html><body>")
.append("<h3>Unable to connect with the rendering engine</h3>")
Expand Down
Expand Up @@ -18,7 +18,7 @@
public class MockHttpCaptureResponse extends HttpServletResponseWrapper implements MockResponse {


ByteArrayOutputStream bout = new ByteArrayOutputStream(4096);
ByteArrayOutputStream bout = new ByteArrayOutputStream(4096*8);
ServletOutputStream out = null;

public MockHttpCaptureResponse(HttpServletResponse response) {
Expand Down
4 changes: 3 additions & 1 deletion hotfix_tracking.md
Expand Up @@ -166,4 +166,6 @@ This maintenance release includes the following code fixes:

81. https://github.com/dotCMS/core/issues/19500 : SQL Injection Vulnerability in api /api/v1/containers

82. https://github.com/dotCMS/core/issues/20636 : Improving error messages for WorkflowAPIImpl
82. https://github.com/dotCMS/core/issues/20636 : Improving error messages for WorkflowAPIImpl

83. https://github.com/dotCMS/core/issues/20629 : EMA should always expect UTF8

0 comments on commit a9f3836

Please sign in to comment.