diff --git a/changelog.html b/changelog.html
index 72bc7f64d..71050062f 100644
--- a/changelog.html
+++ b/changelog.html
@@ -44,6 +44,11 @@
REST API Plugin Changelog
+1.11.1 (tbd)
+
+ - [#200] - Fix compatibility issue with Openfire 4.9.0.
+
+
1.11.0 June 25, 2024
- Now requires Openfire 4.8.0 or later
diff --git a/plugin.xml b/plugin.xml
index 2c3c754c9..03d53aac9 100644
--- a/plugin.xml
+++ b/plugin.xml
@@ -6,7 +6,7 @@
Allows administration over a RESTful API.
Roman Soldatow
${project.version}
- 2024-06-25
+ 2024-10-04
4.8.0
diff --git a/src/java/org/jivesoftware/openfire/plugin/rest/controller/SessionController.java b/src/java/org/jivesoftware/openfire/plugin/rest/controller/SessionController.java
index 6eb929a0d..5edd523da 100644
--- a/src/java/org/jivesoftware/openfire/plugin/rest/controller/SessionController.java
+++ b/src/java/org/jivesoftware/openfire/plugin/rest/controller/SessionController.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2022.
+ * Copyright (c) 2022-2024 Ignite Realtime Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -130,14 +130,14 @@ private SessionEntities convertToSessionEntities(Collection clien
}
String status = "";
- if (clientSession.getStatus() == Session.STATUS_CLOSED) {
+ if (clientSession.getStatus() == Session.Status.CLOSED) {
status = "Closed";
- } else if (clientSession.getStatus() == Session.STATUS_CONNECTED) {
+ } else if (clientSession.getStatus() == Session.Status.CONNECTED) {
status = "Connected";
- } else if (clientSession.getStatus() == Session.STATUS_AUTHENTICATED) {
+ } else if (clientSession.getStatus() == Session.Status.AUTHENTICATED) {
status = "Authenticated";
} else {
- status = "Unkown";
+ status = "Unknown";
}
session.setSessionStatus(status);
@@ -170,7 +170,7 @@ private SessionEntities convertToSessionEntities(Collection clien
session.setCreationDate(clientSession.getCreationDate());
session.setLastActionDate(clientSession.getLastActiveDate());
- session.setSecure(clientSession.isSecure());
+ session.setSecure(clientSession.isEncrypted());
sessions.add(session);
}