]
Stuart Douglas moved JBPAPP-8888 to AS7-4686:
---------------------------------------------
Project: Application Server 7 (was: JBoss Enterprise Application Platform)
Key: AS7-4686 (was: JBPAPP-8888)
Workflow: GIT Pull Request workflow (was: jira)
Affects Version/s: 7.1.1.Final
(was: EAP 6.0.0 ER 5)
Component/s: EJB
Security
(was: EJB)
(was: Security)
Security: (was: Public)
Fix Version/s: 7.1.2.Final-redhat1
(was: TBD EAP 6)
Docs QE Status: (was: NEW)
CLONE - Problems in asynchronous invocation of bean with security
domain definition after authenticated remote call to another bean
-----------------------------------------------------------------------------------------------------------------------------------
Key: AS7-4686
URL:
https://issues.jboss.org/browse/AS7-4686
Project: Application Server 7
Issue Type: Bug
Components: EJB, Security
Affects Versions: 7.1.1.Final
Reporter: Ondřej Chaloupka
Assignee: Stuart Douglas
Labels: eap6_need_triage
Fix For: 7.1.2.Final-redhat1
I have a security test which invokes bean asynchronously
(
https://github.com/ochaloup/jboss-as/blob/6cfe25f2bc05ca03592b465470b33e4...).
The test is run (deployed) by arquillian on server.
The test passes when I run it as single test.
But when the test runs after a test which uses authentication on remote call (like
org.jboss.as.test.integration.ejb.security.AnnSBTest,
https://github.com/ochaloup/jboss-as/blob/6cfe25f2bc05ca03592b465470b33e4...)
then the asynchronous test fails.
I was trying to debug the call and it seems to me that the security context seems not to
be correctly passed to the bean.
So I tried to rewrite the asynchronous test for not using asynchronous calls (I've
removed them:
https://github.com/ochaloup/jboss-as/blob/6fc6d199f1d9a9e8324a5c12dbaaf2f...)
and after the change everything works fine. It works to be called as single test and as
well as a subsequent test of an AnnSBTest.
I've already discussed this issue with Daran via email and he asked me for check
whether the preceding test are cleaning up after themselves. I'm filling this jira
because after checking it I do not have any suspicion that some test does not clean
resources. As well the test rewritten to not asynchronous calls works fine.
You can try to run my "reproducer" - clone my my branch:
JBQA-5483-test-migration-asynchronous (git clone
git://github.com/ochaloup/jboss-as.git -b
JBQA-5483-test-migration-asynchronous) and run
./build.sh clean install -e -DallTests -Dskip-download-sources -U -B -fae
-Dmaven.test.skip.exec=true && ./integration-tests.sh clean install -Dts.noSmoke
-Dts.basic
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: