
Some parts of this message have been removed.
Learn more about Nabble's
security policy.
[mule] [15956] branches/mule-3.x/modules/acegi/src/test/java/org/mule/module/acegi: MULE-4561 Synchronous transports return request message rather than error when security exceptions occurs
- Revision
- 15956
- Author
- dfeist
- Date
- 2009-11-03 12:54:04 -0600 (Tue, 03 Nov 2009)
Log Message
MULE-4561 Synchronous transports return request message rather than error when security exceptions occurs
Modified Paths
Diff
Modified: branches/mule-3.x/modules/acegi/src/test/java/org/mule/module/acegi/HttpFilterFunctionalTestCase.java (15955 => 15956)
--- branches/mule-3.x/modules/acegi/src/test/java/org/mule/module/acegi/HttpFilterFunctionalTestCase.java 2009-11-03 18:15:30 UTC (rev 15955)
+++ branches/mule-3.x/modules/acegi/src/test/java/org/mule/module/acegi/HttpFilterFunctionalTestCase.java 2009-11-03 18:54:04 UTC (rev 15956)
@@ -38,7 +38,11 @@
{
int status = client.executeMethod(get);
assertEquals(HttpConstants.SC_UNAUTHORIZED, status);
- assertEquals("/index.html", get.getResponseBodyAsString());
+ assertEquals(
+ "Registered authentication is set to org.mule.module.acegi.filters.http.HttpBasicAuthenticationFilter "
+ + "but there was no security context on the session. Authentication denied on endpoint "
+ + "http://localhost:4567. Message payload is of type: String",
+ get.getResponseBodyAsString());
}
finally
{
Modified: branches/mule-3.x/modules/spring-security/src/test/java/org/mule/module/spring/security/HttpFilterFunctionalTestCase.java (15955 => 15956)
--- branches/mule-3.x/modules/spring-security/src/test/java/org/mule/module/spring/security/HttpFilterFunctionalTestCase.java 2009-11-03 18:15:30 UTC (rev 15955)
+++ branches/mule-3.x/modules/spring-security/src/test/java/org/mule/module/spring/security/HttpFilterFunctionalTestCase.java 2009-11-03 18:54:04 UTC (rev 15956)
@@ -38,7 +38,11 @@
{
int status = client.executeMethod(get);
assertEquals(HttpConstants.SC_UNAUTHORIZED, status);
- assertTrue(get.getResponseBodyAsString().contains("/index.html"));
+ assertEquals(
+ "Registered authentication is set to org.mule.module.spring.security.filters.http.HttpBasicAuthenticationFilter "
+ + "but there was no security context on the session. Authentication denied on endpoint "
+ + "http://localhost:4567. Message payload is of type: String",
+ get.getResponseBodyAsString());
}
finally
{
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email