mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-5754 - disable file server by default
This commit is contained in:
parent
977deb42c8
commit
f2c3ebfa0e
|
@ -60,7 +60,7 @@ public class FilenameGuardFilter implements Filter {
|
|||
}
|
||||
|
||||
private String guard(String filename) {
|
||||
String guarded = filename.replace(":", "_");
|
||||
String guarded = filename.replace(":", "_").replace("\\", "").replace("/", "");
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug("guarded " + filename + " to " + guarded);
|
||||
}
|
||||
|
|
|
@ -16,14 +16,14 @@
|
|||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>ActiveMQ Console</title>
|
||||
<title>ActiveMQ File server</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>RESTful file access</h1>
|
||||
|
||||
<p>
|
||||
This webapp provides RESTful file access.
|
||||
This webapp provides RESTful file access for <a href="http://activemq.apache.org/blob-messages.html">blob messages</a>. It's disabled by default, please take a look at web server configuration on how to enable it.
|
||||
</p>
|
||||
|
||||
</body>
|
||||
|
|
|
@ -65,12 +65,15 @@
|
|||
<property name="resourceBase" value="${activemq.home}/webapps/admin" />
|
||||
<property name="logUrlOnStart" value="true" />
|
||||
</bean>
|
||||
<!-- Enable embedded file server for Blob messages -->
|
||||
<!--
|
||||
<bean class="org.eclipse.jetty.webapp.WebAppContext">
|
||||
<property name="contextPath" value="/fileserver" />
|
||||
<property name="resourceBase" value="${activemq.home}/webapps/fileserver" />
|
||||
<property name="logUrlOnStart" value="true" />
|
||||
<property name="parentLoaderPriority" value="true" />
|
||||
</bean>
|
||||
-->
|
||||
<bean class="org.eclipse.jetty.webapp.WebAppContext">
|
||||
<property name="contextPath" value="/api" />
|
||||
<property name="resourceBase" value="${activemq.home}/webapps/api" />
|
||||
|
|
Loading…
Reference in New Issue