Skip to content

Commit 6ebe3fb

Browse files
committed
fix igniterealtime#29: Update to HTTP File Upload Component to version 1.4.0
1 parent b3a92c7 commit 6ebe3fb

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

changelog.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@ <h1>HTTP File Upload Plugin Changelog</h1>
4343

4444
<p><b>1.1.4</b> -- (tbd)</p>
4545
<ul>
46+
<li>Updated to HttpFileUploadComponent v1.4.0, which resolves:</li>
47+
<ul>
48+
<li>Updated Guava library to 30.0-jre to address known vulnerabilities with earlier versions.</li>
49+
<li>Improve content-type detection of uploaded content.</li>
50+
<li><a href="https://github.com/guusdk/httpfileuploadcomponent/issues/23">Issue #31:</a> Add new webprotocol option to make the previously hardcoded http protocol configurable.</li>
51+
<li><a href="https://github.com/guusdk/httpfileuploadcomponent/issues/23">Issue #33:</a> Add new wildcardCORS option that adds CORS headers to relax access restrictions imposed by browsers.</li>
52+
<li><a href="https://github.com/guusdk/httpfileuploadcomponent/issues/23">Issue #23:</a> Replace UUID with something more secure.</li>
53+
</ul>
54+
4655
<li>Updated to HttpFileUploadComponent v1.3.0, which resolves:</li>
4756
<ul>
4857
<li><a href="https://github.com/guusdk/httpfileuploadcomponent/issues/23">Issue #23:</a> Replace UUID with something more secure.</li>

plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
<description>Allows clients to share files, as described in the XEP-0363 'HTTP File Upload' specification.</description>
66
<author>Guus der Kinderen</author>
77
<version>${project.version}</version>
8-
<date>6/9/2019</date>
8+
<date>11/04/2021</date>
99
<minServerVersion>4.1.0</minServerVersion>
1010
</plugin>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<dependency>
6262
<groupId>nl.goodbytes.xmpp.xep</groupId>
6363
<artifactId>httpfileuploadcomponent</artifactId>
64-
<version>1.3.0</version>
64+
<version>1.4.0</version>
6565
</dependency>
6666
</dependencies>
6767
</project>

readme.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,15 @@ <h2>Installation</h2>
7474

7575
<h2>Configuration</h2>
7676

77+
<p>
78+
By default, the plugin will store all uploaded files in a temporary directory that is provided by the Operating System.
79+
This directory is configured to be deleted, after Openfire quits. Some Operating Systems are known to periodically
80+
purge these temporary directories, which is another potential source of data loss. This plugin can be configured to
81+
use any other directory for data storage, by providing the path for that directory in the property <samp>plugin.httpfileupload.fileRepo</samp>.
82+
Note that the directory is expected to exist (this plugin will not attempt to create it if it is missing). Be sure
83+
that the process owner of the Openfire process has enough permissions to read and write in that directory.
84+
</p>
85+
7786
<p>
7887
To configure the maximum allowable file size to be uploaded by clients, the property
7988
<samp>plugin.httpfileupload.maxFileSize</samp> can be set to a value in bytes. If not set, a default value is used. To

src/java/org/igniterealtime/openfire/plugins/httpfileupload/HttpFileUploadPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public void initializePlugin( PluginManager manager, File pluginDirectory )
8282

8383
component = new Component( XMPPServer.getInstance().getServerInfo().getXMPPDomain());
8484

85-
// Add the Webchat sources to the same context as the one that's providing the BOSH interface.
85+
// Add the webapp to the same context as the one that's providing the BOSH interface.
8686
context = new WebAppContext( null, pluginDirectory.getPath() + File.separator + "classes", "/httpfileupload" );
8787
context.setClassLoader( this.getClass().getClassLoader() );
8888

0 commit comments

Comments
 (0)