]
Ovidiu Feodorov updated JBMESSAGING-807:
----------------------------------------
Fix Version/s: 1.2.0.CR1
security context switch after sending a message
-----------------------------------------------
Key: JBMESSAGING-807
URL:
http://jira.jboss.com/jira/browse/JBMESSAGING-807
Project: JBoss Messaging
Issue Type: Bug
Affects Versions: 1.0.1.SP2
Environment: linux (Centos 4.4), jboss 4.0.3SP1, JbossMessaging 1.0.1SP2
Reporter: Andrea Di Cesare
Assigned To: Ovidiu Feodorov
Fix For: 1.2.0.CR1, 1.0.1.SP4
Attachments: bugtest.zip
scenario:
a SLSB uses a SFSB and sends a message to a MDB's queue. after having sent the
message, the security context seems to switch to JBM's. after that, a call to the SFSB
remove method throws security exception.
the EJBs run under a security domain while the JBM has its own
The connection to send the messages is obtained with connection.getConnection(),
therefore the unauthenticated principal (set in login-conf.xml) is used to access the
queues.
this is the pseudo code of the SLSB:
1. SFSB sfsb = SFSBHome.create();
....
2. send message to the MDB queue;
....
3. sfsb.remove(); <--- here SecurityException - principal = null
if I remove the call 2, everything goes fine and the SFSB is correctly removed.
note the the message is correctly sent.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: