Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-213

When installing the same extension on differents namespaces only one listener will be registered

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0.1
    • Fix Version/s: None
    • Component/s: Extension, Observation
    • Labels:
      None
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      The same root ObservationManager is generally used for all listeners of all namespaces (wikis).

      Because both obviously have the same id, ObservationManager complain that we are trying to register twice the same listener an only keep one.

      Problem is that only one of the namespace (wiki) will have its extension receive events.

      A workaround is to generate a unique id (for example using System.identityHashCode(this)) in getName().

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tmortagne Thomas Mortagne
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: