[ http://jira.magnolia.info/browse/MAGNOLIA-1214?page=all ]
Boris Kraft resolved MAGNOLIA-1214. ----------------------------------- Resolution: Won't Fix Its a feature, not a bug. > Activation only goes to 1 subscriber > ------------------------------------ > > Key: MAGNOLIA-1214 > URL: http://jira.magnolia.info/browse/MAGNOLIA-1214 > Project: Magnolia > Issue Type: Bug > Components: activation > Affects Versions: 3.0 RC4 > Environment: tomcat 5 on Windows XP Pro. > Reporter: Art Peel > Assigned To: Sameer Charles > Attachments: SimpleSyndicator.java.patch > > > 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()) { > + Subscriber si = (Subscriber)subscribers.nextElement(); > + if (si.isActive()) { > + activate(si, activationContent); > + } > } > } > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia.info/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ----------------------------------------------------------------