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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 4.0.1
    • Extension, Observation
    • None
    • N/A
    • N/A

    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

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

              Dates

                Created:
                Updated: