You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by as...@apache.org on 2018/09/18 09:48:19 UTC

[sling-org-apache-sling-security] branch master updated (a79203c -> 478b0a7)

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

asanso pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-security.git.


    from a79203c  Updating badges for org-apache-sling-security
     new 0d85834  SLING-7933 - Evaluate Referrer Filter also for anonymous users
     new d43603b  [maven-release-plugin] prepare release org.apache.sling.security-1.1.14
     new 478b0a7  [maven-release-plugin] rollback the release of org.apache.sling.security-1.1.14

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 pom.xml                                                          | 2 +-
 src/main/java/org/apache/sling/security/impl/ReferrerFilter.java | 8 +++-----
 2 files changed, 4 insertions(+), 6 deletions(-)


[sling-org-apache-sling-security] 01/03: SLING-7933 - Evaluate Referrer Filter also for anonymous users

Posted by as...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

asanso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-security.git

commit 0d85834b841fa3485679f3c03583cabac8346f9d
Author: Antonio Sanso <as...@adobe.com>
AuthorDate: Tue Sep 18 11:35:57 2018 +0200

    SLING-7933 - Evaluate Referrer Filter also for anonymous users
---
 pom.xml                                                          | 2 +-
 src/main/java/org/apache/sling/security/impl/ReferrerFilter.java | 8 +++-----
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/pom.xml b/pom.xml
index b2d72ec..e1a2c47 100644
--- a/pom.xml
+++ b/pom.xml
@@ -76,7 +76,7 @@
         <dependency>
             <groupId>org.osgi</groupId>
             <artifactId>org.osgi.service.http.whiteboard</artifactId>
-            <version>1.0.0</version>
+            <version>1.1.0</version>
             <scope>provided</scope>
         </dependency>
         <dependency>
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 9533a11..7e4b026 100644
--- a/src/main/java/org/apache/sling/security/impl/ReferrerFilter.java
+++ b/src/main/java/org/apache/sling/security/impl/ReferrerFilter.java
@@ -34,8 +34,6 @@ import java.util.Hashtable;
 import java.util.List;
 import java.util.Set;
 import java.util.regex.Pattern;
-
-import javax.servlet.Filter;
 import javax.servlet.FilterChain;
 import javax.servlet.FilterConfig;
 import javax.servlet.ServletException;
@@ -43,7 +41,6 @@ import javax.servlet.ServletRequest;
 import javax.servlet.ServletResponse;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
-
 import org.osgi.framework.BundleContext;
 import org.osgi.framework.Constants;
 import org.osgi.framework.ServiceRegistration;
@@ -51,6 +48,7 @@ import org.osgi.service.component.annotations.Activate;
 import org.osgi.service.component.annotations.Component;
 import org.osgi.service.component.annotations.Deactivate;
 import org.osgi.service.http.whiteboard.HttpWhiteboardConstants;
+import org.osgi.service.http.whiteboard.Preprocessor;
 import org.osgi.service.metatype.annotations.AttributeDefinition;
 import org.osgi.service.metatype.annotations.Designate;
 import org.osgi.service.metatype.annotations.ObjectClassDefinition;
@@ -58,14 +56,14 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 @Component(
-        service = Filter.class,
+        service = Preprocessor.class,
         property = {
                 HttpWhiteboardConstants.HTTP_WHITEBOARD_FILTER_PATTERN + "=/",
                 HttpWhiteboardConstants.HTTP_WHITEBOARD_CONTEXT_SELECT + "=(" + HttpWhiteboardConstants.HTTP_WHITEBOARD_CONTEXT_NAME + "=*)"
         }
 )
 @Designate(ocd = ReferrerFilter.Config.class)
-public class ReferrerFilter implements Filter {
+public class ReferrerFilter implements  Preprocessor {
 
     /**
      * Request header providing the clients user agent information used


[sling-org-apache-sling-security] 02/03: [maven-release-plugin] prepare release org.apache.sling.security-1.1.14

Posted by as...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

asanso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-security.git

commit d43603b717d64294779bfd2a68515bdeec3ebc4c
Author: Antonio Sanso <as...@adobe.com>
AuthorDate: Tue Sep 18 11:45:26 2018 +0200

    [maven-release-plugin] prepare release org.apache.sling.security-1.1.14
---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index e1a2c47..4c7cb01 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
     </parent>
 
     <artifactId>org.apache.sling.security</artifactId>
-    <version>1.1.13-SNAPSHOT</version>
+    <version>1.1.14</version>
     <packaging>bundle</packaging>
 
     <name>Apache Sling Security</name>
@@ -40,7 +40,7 @@
         <connection>scm:git:https://gitbox.apache.org/repos/asf/sling-org-apache-sling-security.git</connection>
         <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/sling-org-apache-sling-security.git</developerConnection>
         <url>https://gitbox.apache.org/repos/asf?p=sling-org-apache-sling-security.git</url>
-      <tag>HEAD</tag>
+      <tag>org.apache.sling.security-1.1.14</tag>
   </scm>
 
     <build>


[sling-org-apache-sling-security] 03/03: [maven-release-plugin] rollback the release of org.apache.sling.security-1.1.14

Posted by as...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

asanso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-security.git

commit 478b0a7b765441698e1644c2b219abf70a6b5c4a
Author: Antonio Sanso <as...@adobe.com>
AuthorDate: Tue Sep 18 11:48:11 2018 +0200

    [maven-release-plugin] rollback the release of org.apache.sling.security-1.1.14
---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 4c7cb01..e1a2c47 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
     </parent>
 
     <artifactId>org.apache.sling.security</artifactId>
-    <version>1.1.14</version>
+    <version>1.1.13-SNAPSHOT</version>
     <packaging>bundle</packaging>
 
     <name>Apache Sling Security</name>
@@ -40,7 +40,7 @@
         <connection>scm:git:https://gitbox.apache.org/repos/asf/sling-org-apache-sling-security.git</connection>
         <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/sling-org-apache-sling-security.git</developerConnection>
         <url>https://gitbox.apache.org/repos/asf?p=sling-org-apache-sling-security.git</url>
-      <tag>org.apache.sling.security-1.1.14</tag>
+      <tag>HEAD</tag>
   </scm>
 
     <build>