sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asa...@apache.org
Subject svn commit: r1661648 - /sling/trunk/contrib/extensions/security/src/test/java/org/apache/sling/security/impl/ReferrerFilterTest.java
Date Mon, 23 Feb 2015 11:56:14 GMT
Author: asanso
Date: Mon Feb 23 11:56:13 2015
New Revision: 1661648

URL: http://svn.apache.org/r1661648
Log:
SLING-4019 - ReferrerFilter should have DEFAULT_ALLOW_EMPTY set to false

Modified:
    sling/trunk/contrib/extensions/security/src/test/java/org/apache/sling/security/impl/ReferrerFilterTest.java

Modified: sling/trunk/contrib/extensions/security/src/test/java/org/apache/sling/security/impl/ReferrerFilterTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/extensions/security/src/test/java/org/apache/sling/security/impl/ReferrerFilterTest.java?rev=1661648&r1=1661647&r2=1661648&view=diff
==============================================================================
--- sling/trunk/contrib/extensions/security/src/test/java/org/apache/sling/security/impl/ReferrerFilterTest.java
(original)
+++ sling/trunk/contrib/extensions/security/src/test/java/org/apache/sling/security/impl/ReferrerFilterTest.java
Mon Feb 23 11:56:13 2015
@@ -77,7 +77,7 @@ public class ReferrerFilterTest {
     }
 
     @Test public void testValidRequest() {
-        Assert.assertEquals(true, filter.isValidRequest(getRequest(null)));
+        Assert.assertEquals(false, filter.isValidRequest(getRequest(null)));
         Assert.assertEquals(true, filter.isValidRequest(getRequest("relative")));
         Assert.assertEquals(true, filter.isValidRequest(getRequest("/relative/too")));
         Assert.assertEquals(true, filter.isValidRequest(getRequest("/relative/but/[illegal]")));



Mime
View raw message