Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,11 @@ <h1>
Client Control Plugin Changelog
</h1>

<p><b>2.1.11</b> Unreleased version</p>
<p><b>2.2.0</b> March 15, 2026</p>
<ul>
<li>Fix Spark Version activation for Linux and macOS</li>
<li>Permitted clients page: Remove old clients and add new</li>
<li>Bump commons-fileupload from 1.5 to 1.6.</li>
Comment thread
stokito marked this conversation as resolved.
</ul>

<p><b>2.1.10</b> June 24, 2025</p>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</parent>
<groupId>org.igniterealtime.openfire.plugins</groupId>
<artifactId>clientControl</artifactId>
<version>2.1.11-SNAPSHOT</version>
<version>2.2.1-SNAPSHOT</version>
<name>ClientControl Plugin</name>
<description>Controls clients allowed to connect and available features</description>

Expand All @@ -29,7 +29,7 @@
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.5</version>
<version>1.6.0</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public ClientControlPlugin() {

// Plugin Interface

@Override
public void initializePlugin(PluginManager manager, File pluginDirectory) {
taskEngine = TaskEngine.getInstance();
sparkManager = new SparkManager(taskEngine);
Expand All @@ -56,13 +57,13 @@ public void initializePlugin(PluginManager manager, File pluginDirectory) {

fileTransferFilterManager = new FileTransferFilterManager();
fileTransferFilterManager.start();

}

public FileTransferFilterManager getFileTransferFilterManager() {
return fileTransferFilterManager;
}

@Override
public void destroyPlugin() {
if (sparkManager != null) {
sparkManager.stop();
Expand Down
11 changes: 11 additions & 0 deletions src/java/org/jivesoftware/openfire/plugin/spark/SparkManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,12 @@ public SparkManager(TaskEngine taskEngine) {
}


@Override
public String getName() {
return "Features Component";
}

@Override
public String getDescription() {
return "Allows for discovery of certain features.";
}
Expand All @@ -129,6 +131,7 @@ public String getDescription() {
*
* @param packet the packet
*/
@Override
public void processPacket(Packet packet) {
if (packet instanceof IQ) {
IQ iqPacket = (IQ)packet;
Expand Down Expand Up @@ -241,10 +244,12 @@ private void handleClientVersion(IQ iq) {
}
}

@Override
public void initialize(JID jid, ComponentManager componentManager) throws ComponentException {
// Do nothing.
}

@Override
public void start() {
// Do nothing.
}
Expand All @@ -270,6 +275,7 @@ public void stop() {
* Remove any resources SparkManager was using. This will allow
* for a clean reload.
*/
@Override
public void shutdown() {
// Cleanup
SessionEventDispatcher.removeListener(sessionEventListener);
Expand Down Expand Up @@ -614,6 +620,7 @@ private class SparkSessionListener implements SessionEventListener {
*
* @param session the newly created session.
*/
@Override
public void sessionCreated(final Session session) {
// Check to see if Spark is required.
String clientsAllowed = JiveGlobals.getProperty("clients.allowed", "all");
Expand All @@ -636,18 +643,22 @@ public void run() {
*
* @param session the session destroyed.
*/
@Override
public void sessionDestroyed(Session session) {

}

@Override
public void resourceBound(Session session) {
// Do nothing.
}

@Override
public void anonymousSessionCreated(Session session) {
// Ignore.
}

@Override
public void anonymousSessionDestroyed(Session session) {
// Ignore.
}
Expand Down
Loading
Loading