Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-1214

Activation only goes to 1 subscriber

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 3.0 RC4
    • activation
    • 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

        Attachments

          Activity

            People

              scharles Sameer Charles
              apeel Art Peel
              Votes:
              3 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD