Details
-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
3.0 RC4
-
None
-
tomcat 5 on Windows XP Pro.
Description
Through the config page, make sure there are two or more subscribers.
Add a new page to the website and activate it.
The new page will be sent to only 1 of the subscribers because SimpleSyndicator only asks for 1.
Here is a patch for that:
Index: SimpleSyndicator.java
===================================================================
— SimpleSyndicator.java (revision 7481)
+++ SimpleSyndicator.java (working copy)
@@ -20,6 +20,7 @@
import java.net.URL;
import java.net.URLConnection;
import java.io.*;
+import java.util.Enumeration;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
@@ -47,9 +48,12 @@
- @throws ExchangeException
*/
public synchronized void activate(ActivationContent activationContent) throws ExchangeException {
- Subscriber si = Subscriber.getSubscriber();
- if (si.isActive()) {
- activate(si, activationContent);
+ Enumeration subscribers = Subscriber.getList();
+ while(subscribers.hasMoreElements())Unknown macro: {+ Subscriber si = (Subscriber)subscribers.nextElement();+ if (si.isActive()) { + activate(si, activationContent); + } }}
Checklists
Acceptance criteria