You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 10:26:19 UTC

[sling-org-apache-sling-xss] 01/05: Add a xss.compat bundle based on the latest release of the xss bundle. This new bundle is intented to bridge the gap until all clients updated to the upcomming xss 2.0 api.

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

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

commit dedcf1f5ba6eb3e1c96d3e833795d8aaac25efeb
Author: Karl Pauls <pa...@apache.org>
AuthorDate: Fri Apr 28 09:11:19 2017 +0000

    Add a xss.compat bundle based on the latest release of the xss bundle. This new bundle is intented to bridge the gap until all clients updated to the upcomming xss 2.0 api.
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/xss.compat@1793022 13f79535-47bb-0310-9956-ffa450edef68
---
 README.md                                            |  6 ++++--
 pom.xml                                              | 14 +++++++-------
 src/main/java/org/apache/sling/xss/JSONUtil.java     |  1 +
 src/main/java/org/apache/sling/xss/XSSAPI.java       |  2 ++
 src/main/java/org/apache/sling/xss/package-info.java |  2 +-
 5 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/README.md b/README.md
index 1074649..e8174e7 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,10 @@
-Apache Sling XSS Bundle
+Apache Sling XSS Compat Bundle
 ====
-The Apache Sling XSS Bundle provides two services for escaping and filtering XSS-prone user submitted content:
+The Apache Sling XSS Compat Bundle provides two services for escaping and filtering XSS-prone user submitted content:
 
 1. org.apache.sling.xss.XSSAPI
 2. org.apache.sling.xss.XSSFilter
 
+It is intended for users of the 1.x version of the org.apache.sling.xss package that can not or did not yet update to version 2.x (provided by the Apache Sling XSS Bundle).
+
 Please check the JavaDoc of each service to find out what methods they provide.
diff --git a/pom.xml b/pom.xml
index 37408b9..83b2b5f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -30,19 +30,19 @@
     <!-- ======================================================================= -->
     <!-- P R O J E C T                                                           -->
     <!-- ======================================================================= -->
-    <artifactId>org.apache.sling.xss</artifactId>
+    <artifactId>org.apache.sling.xss.compat</artifactId>
     <packaging>bundle</packaging>
-    <version>1.0.8</version>
+    <version>1.0.0-SNAPSHOT</version>
 
-    <name>Apache Sling XSS Protection Bundle</name>
+    <name>Apache Sling XSS Protection Compat Bundle</name>
     <description>
-        Apache Sling XSS Protection Bundle providing XSS protection based on the OWASP AntiSamy and OWASP Java Encoder libraries.
+        Apache Sling XSS Protection Compat Bundle providing XSS protection based on the OWASP AntiSamy and OWASP Java Encoder libraries.
     </description>
 
     <scm>
-        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/tags/org.apache.sling.xss-1.0.8</connection>
-        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/tags/org.apache.sling.xss-1.0.8</developerConnection>
-        <url>http://svn.apache.org/viewvc/sling/tags/org.apache.sling.xss-1.0.8</url>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/xss.compat</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/xss.compat</developerConnection>
+        <url>http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/xss.compat</url>
     </scm>
 
 
diff --git a/src/main/java/org/apache/sling/xss/JSONUtil.java b/src/main/java/org/apache/sling/xss/JSONUtil.java
index 37552af..df0b1ef 100644
--- a/src/main/java/org/apache/sling/xss/JSONUtil.java
+++ b/src/main/java/org/apache/sling/xss/JSONUtil.java
@@ -25,6 +25,7 @@ import org.apache.sling.commons.json.io.JSONWriter;
  * <p>
  * Support for handling xss protected values with JSON objects and JSON writers.
  */
+@Deprecated
 public final class JSONUtil {
 
     /**
diff --git a/src/main/java/org/apache/sling/xss/XSSAPI.java b/src/main/java/org/apache/sling/xss/XSSAPI.java
index 50f2cd6..4faabee 100644
--- a/src/main/java/org/apache/sling/xss/XSSAPI.java
+++ b/src/main/java/org/apache/sling/xss/XSSAPI.java
@@ -241,6 +241,7 @@ public interface XSSAPI {
      * @param request the request from which to obtain the {@link org.apache.sling.xss.XSSAPI}
      * @return an XSSAPI service capable of validating hrefs.
      */
+    @Deprecated
     XSSAPI getRequestSpecificAPI(SlingHttpServletRequest request);
 
     /**
@@ -250,6 +251,7 @@ public interface XSSAPI {
      * @param resourceResolver the resolver from which to obtain the {@link org.apache.sling.xss.XSSAPI}
      * @return an XSSAPI service capable of validating hrefs.
      */
+    @Deprecated
     XSSAPI getResourceResolverSpecificAPI(ResourceResolver resourceResolver);
 
 }
diff --git a/src/main/java/org/apache/sling/xss/package-info.java b/src/main/java/org/apache/sling/xss/package-info.java
index de16384..4f8a523 100644
--- a/src/main/java/org/apache/sling/xss/package-info.java
+++ b/src/main/java/org/apache/sling/xss/package-info.java
@@ -19,7 +19,7 @@
  *
  * @version 1.1.0
  */
-@Version("1.1.0")
+@Version("1.1.1")
 package org.apache.sling.xss;
 
 import aQute.bnd.annotation.Version;

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.