Browse Source

Pull request #2226: REPORT-38889 tomcat 8.5.x 请求参数带特殊字符问题

Merge in DESIGN/design from ~HADES/design:final/10.0 to final/10.0

* commit '7c21fc10ac4e5897cbd2fe6a4205021c1ee42e7a':
  REPORT-38889 tomcat 8.5.x 请求参数带特殊字符问题
final/10.0
Kara 4 years ago
parent
commit
b2fa5c0f73
  1. 4
      designer-base/src/main/java/com/fr/start/server/FineEmbedServerActivator.java

4
designer-base/src/main/java/com/fr/start/server/FineEmbedServerActivator.java

@ -62,6 +62,10 @@ public class FineEmbedServerActivator extends Activator {
tomcat.setPort(DesignerEnvManager.getEnvManager().getEmbedServerPort());
// 设置解码uri使用的字符编码
tomcat.getConnector().setURIEncoding(EncodeConstants.ENCODING_UTF_8);
// 参考 https://jira.atlassian.com/browse/CONFSERVER-57582
// https://tomcat.apache.org/tomcat-8.5-doc/config/http.html
// 8.5.x 请求参数带特殊字符被tomcat拒绝 []|{}^\`"<>
tomcat.getConnector().setProperty("relaxedQueryChars", "[]|{}^&#x5c;&#x60;&quot;&lt;&gt;");
setMaxPostSize();
String docBase = new File(WorkContext.getCurrent().getPath()).getParent();

Loading…
Cancel
Save