[
https://jira.jboss.org/jira/browse/JBSEAM-4152?page=com.atlassian.jira.pl...
]
Work on JBSEAM-4152 started by Christian Bauer.
HTTP BASIC authentication fails with exception during embedded
container testing
--------------------------------------------------------------------------------
Key: JBSEAM-4152
URL:
https://jira.jboss.org/jira/browse/JBSEAM-4152
Project: Seam
Issue Type: Bug
Components: Security, WS
Environment: JDK 5
Seam 2_1 branch
Reporter: Jozef Hartinger
Assignee: Christian Bauer
Priority: Critical
Fix For: 2.2.0.CR1
Authentication works fine when the application is deployed to a standalone container
(JBoss 4.2.3.GA) and tested manually. Following exception is however thrown during testrun
in embedded container. To reproduce uncomment SecurityTest in
/examples/restbay/src/org/jboss/seam/example/restbay/test/testng.xml and run "ant
test" in /examples/restbay
[testng] FAILED: basicAuthTest
[testng] javax.servlet.ServletException: Identity not found - please ensure that the
Identity component is created on startup.
[testng] at
org.jboss.seam.web.AuthenticationFilter.processBasicAuth(AuthenticationFilter.java:137)
[testng] at
org.jboss.seam.web.AuthenticationFilter.doFilter(AuthenticationFilter.java:121)
[testng] at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
[testng] at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)
[testng] at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
[testng] at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
[testng] at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
[testng] at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
[testng] at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
[testng] at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
[testng] at
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
[testng] at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
[testng] at
org.jboss.seam.example.restbay.test.fwk.ResourceSeamTest$ResourceRequest.run(ResourceSeamTest.java:76)
[testng] at
org.jboss.seam.example.restbay.test.SecurityTest.basicAuthTest(SecurityTest.java:15)
[testng] ... Removed 22 stack frames
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira