Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-7731

Call to addService is no longer needed for modification events in SlingAuthenticatorServiceListener

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Auth Core 1.3.18
    • Auth Core 1.4.8
    • Authentication
    • None

    Description

      After introduction of modifiedService(...) method in SlingAuthenticatorServiceListener, calling addService(...) is no longer needed for modification event.

      https://github.com/apache/sling-org-apache-sling-auth-core/blob/master/src/main/java/org/apache/sling/auth/core/impl/SlingAuthenticatorServiceListener.java#L85

      Therefore line 85 should be changed from:

      if ((event.getType() & (ServiceEvent.REGISTERED | ServiceEvent.MODIFIED)) != 0) {
      

      to:

      if ((event.getType() & ServiceEvent.REGISTERED) != 0) {
      
      

      Attachments

        Activity

          People

            rombert Robert Munteanu
            vfrey Vincent Frey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: