You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2026/10/06 03:44:28 UTC

(openmeetings) branch master updated: [OPENMEETINGS-2842] RSS seems to be fixed

This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/master by this push:
     new 2fc4277c8 [OPENMEETINGS-2842] RSS seems to be fixed
2fc4277c8 is described below

commit 2fc4277c811853b4f1dbf6258d16c756310b428a
Author: Maxim Solodovnik <so...@apache.org>
AuthorDate: Tue Oct 6 10:44:18 2026 +0700

    [OPENMEETINGS-2842] RSS seems to be fixed
---
 .../apache/openmeetings/installation/ImportInitvalues.java  |  2 +-
 .../openmeetings/installation/InstallationConfig.java       |  4 ++--
 .../apache/openmeetings/service/scheduler/AtomReader.java   | 13 +++++++------
 3 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/openmeetings-install/src/main/java/org/apache/openmeetings/installation/ImportInitvalues.java b/openmeetings-install/src/main/java/org/apache/openmeetings/installation/ImportInitvalues.java
index 838794aac..5fc49b6de 100644
--- a/openmeetings-install/src/main/java/org/apache/openmeetings/installation/ImportInitvalues.java
+++ b/openmeetings-install/src/main/java/org/apache/openmeetings/installation/ImportInitvalues.java
@@ -297,7 +297,7 @@ public class ImportInitvalues {
 
 		list.add(new Configuration(CONFIG_DASHBOARD_SHOW_CHAT, String.valueOf(true), Configuration.Type.BOOL, "Show 'Global Chat' outside the room", VER_1_9));
 
-		list.add(new Configuration(CONFIG_DASHBOARD_SHOW_RSS, String.valueOf(false), Configuration.Type.BOOL, "Show RSS widget on dashboard", VER_1_9));
+		list.add(new Configuration(CONFIG_DASHBOARD_SHOW_RSS, String.valueOf(true), Configuration.Type.BOOL, "Show RSS widget on dashboard", VER_1_9));
 
 		list.add(new Configuration(CONFIG_MAX_UPLOAD_SIZE, String.valueOf(DEFAULT_MAX_UPLOAD_SIZE), Configuration.Type.NUMBER,
 				"Maximum size of upload file (bytes)", VER_1_8));
diff --git a/openmeetings-install/src/main/java/org/apache/openmeetings/installation/InstallationConfig.java b/openmeetings-install/src/main/java/org/apache/openmeetings/installation/InstallationConfig.java
index 8c3f4914b..0c9a2e5f9 100644
--- a/openmeetings-install/src/main/java/org/apache/openmeetings/installation/InstallationConfig.java
+++ b/openmeetings-install/src/main/java/org/apache/openmeetings/installation/InstallationConfig.java
@@ -56,8 +56,8 @@ public class InstallationConfig implements Serializable {
 
 	private int defaultLangId = 1;
 	private boolean sendEmailAtRegister = false;
-	private String urlFeed = "https://mail-archives.apache.org/mod_mbox/openmeetings-user/?format=atom";
-	private String urlFeed2 = "https://mail-archives.apache.org/mod_mbox/openmeetings-dev/?format=atom";
+	private String urlFeed = "https://lists.apache.org/api/atom?list=user&domain=openmeetings.apache.org";
+	private String urlFeed2 = "https://lists.apache.org/api/atom?list=dev&domain=openmeetings.apache.org";
 	private boolean sendEmailWithVerficationCode = false;
 	private boolean sipEnable = false;
 	private String sipRoomPrefix = "400";
diff --git a/openmeetings-service/src/main/java/org/apache/openmeetings/service/scheduler/AtomReader.java b/openmeetings-service/src/main/java/org/apache/openmeetings/service/scheduler/AtomReader.java
index 42e4f30b5..c2ce43e20 100644
--- a/openmeetings-service/src/main/java/org/apache/openmeetings/service/scheduler/AtomReader.java
+++ b/openmeetings-service/src/main/java/org/apache/openmeetings/service/scheduler/AtomReader.java
@@ -61,6 +61,7 @@ public class AtomReader {
 			.add(new Field("title"))
 			.add(new Field("link", "link", "href", false))
 			.add(new Field(ATTR_CONTENT, ATTR_CONTENT, true))
+			.add(new Field("summary", ATTR_CONTENT, true))
 			.add(new Field("updated", ATTR_PUBLISHED))
 			.add(new Field(ATTR_PUBLISHED))
 			.add(new Field("author"));
@@ -114,8 +115,8 @@ public class AtomReader {
 						} else if (f != null && evt.isCharacters()) {
 							val.append(escapeXml11(((Characters)evt).getData()));
 						} else if (f != null && evt.isEndElement() && f.getName().equals(((EndElement)evt).getName().getLocalPart())) {
-							if (!obj.has(f.getAlias())) {
-								obj.put(f.getAlias(), val.toString());
+							if (!obj.has(f.getJsonName())) {
+								obj.put(f.getJsonName(), val.toString());
 							}
 							f = null;
 						} else if (evt.isEndElement() && spec.getName().equals(((EndElement)evt).getName().getLocalPart())) {
@@ -165,7 +166,7 @@ public class AtomReader {
 
 	public static class Field {
 		private final String name;
-		private final String alias;
+		private final String jsonName;
 		private final String attr;
 		private final boolean xml;
 
@@ -183,7 +184,7 @@ public class AtomReader {
 
 		public Field(String name, String alias, String attr, boolean xml) {
 			this.name= name;
-			this.alias = alias;
+			this.jsonName = alias;
 			this.attr = attr;
 			this.xml = xml;
 		}
@@ -192,8 +193,8 @@ public class AtomReader {
 			return name;
 		}
 
-		public String getAlias() {
-			return alias;
+		public String getJsonName() {
+			return jsonName;
 		}
 
 		public String getAttr() {