This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.security-1.0.10
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-security.git

commit fbfc8e8a4c845490655b7c95fa1c6b79ea7fa99d
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Mon Apr 22 08:03:50 2013 +0000

    SLING-2836 : Missing @(De)Activate annotations in 
ReferrerFilter#(de)activate() methods cause Sling Referrer Filter Tab clones
    
    git-svn-id: 
https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/security@1470406
 13f79535-47bb-0310-9956-ffa450edef68
---
 src/main/java/org/apache/sling/security/impl/ReferrerFilter.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/main/java/org/apache/sling/security/impl/ReferrerFilter.java 
b/src/main/java/org/apache/sling/security/impl/ReferrerFilter.java
index 1c473a5..000f463 100644
--- a/src/main/java/org/apache/sling/security/impl/ReferrerFilter.java
+++ b/src/main/java/org/apache/sling/security/impl/ReferrerFilter.java
@@ -42,7 +42,9 @@ import javax.servlet.ServletResponse;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 
+import org.apache.felix.scr.annotations.Activate;
 import org.apache.felix.scr.annotations.Component;
+import org.apache.felix.scr.annotations.Deactivate;
 import org.apache.felix.scr.annotations.Property;
 import org.apache.felix.scr.annotations.PropertyUnbounded;
 import org.apache.felix.scr.annotations.Service;
@@ -179,6 +181,7 @@ public class ReferrerFilter implements Filter {
     /**
      * Activate
      */
+    @Activate
     protected void activate(final ComponentContext ctx) {
         this.allowEmpty = 
PropertiesUtil.toBoolean(ctx.getProperties().get(PROP_ALLOW_EMPTY), 
DEFAULT_ALLOW_EMPTY);
         String[] allowHosts = 
PropertiesUtil.toStringArray(ctx.getProperties().get(PROP_HOSTS));
@@ -208,6 +211,7 @@ public class ReferrerFilter implements Filter {
         this.configPrinterRegistration = 
registerConfigPrinter(ctx.getBundleContext());
     }
 
+    @Deactivate
     protected void deactivate() {
         this.configPrinterRegistration.unregister();
     }

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to