[JBoss JIRA] (WFLY-3313) Websocket Auth - Container is not aware of the Principal
by Juraci Paixão Kröhling (JIRA)
[ https://issues.jboss.org/browse/WFLY-3313?page=com.atlassian.jira.plugin.... ]
Juraci Paixão Kröhling updated WFLY-3313:
-----------------------------------------
Attachment: websocket-different-principals-ejb-vs-socket.png
> Websocket Auth - Container is not aware of the Principal
> --------------------------------------------------------
>
> Key: WFLY-3313
> URL: https://issues.jboss.org/browse/WFLY-3313
> Project: WildFly
> Issue Type: Bug
> Components: EJB, Security, Web (Undertow)
> Affects Versions: 8.1.0.CR1, 10.0.0.Final
> Reporter: Markus D
> Assignee: Jason Greene
> Attachments: websocket-different-principals-ejb-vs-socket.png
>
>
> The Websocket is protected by the web.xml. The session object of the callback object correctly returns the principal.
> When an EJB is called the callerPrincipal is always anonymous.
> @Resource
> private SessionContext ctx;
> Principal callerPrincipal = ctx.getCallerPrincipal();
> Running thread here:
> https://community.jboss.org/thread/240617
> Shouldn't the principal be propagated to the EJB container when a websocket callback method triggered?
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years
[JBoss JIRA] (WFLY-3313) Websocket Auth - Container is not aware of the Principal
by Juraci Paixão Kröhling (JIRA)
[ https://issues.jboss.org/browse/WFLY-3313?page=com.atlassian.jira.plugin.... ]
Juraci Paixão Kröhling edited comment on WFLY-3313 at 4/13/16 4:19 AM:
-----------------------------------------------------------------------
Apparently, this is still happening. Using the [javaee7-samples' "websocket/endpoint-security"|http://blog.arungupta.me/securing-websockets-username-password-servlet-security-techtip49/] as base and using the following code, I get the proper user on the WS Session's principal and anonymous on EJB's session context.
{code}
@ServerEndpoint(value = "/websocket")
@Stateless
public class MyEndpoint {
@SuppressWarnings("EjbEnvironmentInspection") @Resource
SessionContext sessionContext;
@OnMessage
public String echoText(Session session, String text) {
Principal sessionP = session.getUserPrincipal();
Principal p = sessionContext.getCallerPrincipal();
return text;
}
}
{code}
was (Author: juraci.costa):
Apparently, this is still happening.
> Websocket Auth - Container is not aware of the Principal
> --------------------------------------------------------
>
> Key: WFLY-3313
> URL: https://issues.jboss.org/browse/WFLY-3313
> Project: WildFly
> Issue Type: Bug
> Components: EJB, Security, Web (Undertow)
> Affects Versions: 8.1.0.CR1, 10.0.0.Final
> Reporter: Markus D
> Assignee: Jason Greene
>
> The Websocket is protected by the web.xml. The session object of the callback object correctly returns the principal.
> When an EJB is called the callerPrincipal is always anonymous.
> @Resource
> private SessionContext ctx;
> Principal callerPrincipal = ctx.getCallerPrincipal();
> Running thread here:
> https://community.jboss.org/thread/240617
> Shouldn't the principal be propagated to the EJB container when a websocket callback method triggered?
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years
[JBoss JIRA] (WFLY-3313) Websocket Auth - Container is not aware of the Principal
by Juraci Paixão Kröhling (JIRA)
[ https://issues.jboss.org/browse/WFLY-3313?page=com.atlassian.jira.plugin.... ]
Juraci Paixão Kröhling commented on WFLY-3313:
----------------------------------------------
Apparently, this is still happening.
> Websocket Auth - Container is not aware of the Principal
> --------------------------------------------------------
>
> Key: WFLY-3313
> URL: https://issues.jboss.org/browse/WFLY-3313
> Project: WildFly
> Issue Type: Bug
> Components: EJB, Security, Web (Undertow)
> Affects Versions: 8.1.0.CR1, 10.0.0.Final
> Reporter: Markus D
> Assignee: Jason Greene
>
> The Websocket is protected by the web.xml. The session object of the callback object correctly returns the principal.
> When an EJB is called the callerPrincipal is always anonymous.
> @Resource
> private SessionContext ctx;
> Principal callerPrincipal = ctx.getCallerPrincipal();
> Running thread here:
> https://community.jboss.org/thread/240617
> Shouldn't the principal be propagated to the EJB container when a websocket callback method triggered?
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years
[JBoss JIRA] (DROOLS-1117) After 2 times loading the same Rule 3rd time its not loading, Even No error occured
by Mario Fusco (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1117?page=com.atlassian.jira.plugi... ]
Mario Fusco resolved DROOLS-1117.
---------------------------------
Resolution: Cannot Reproduce Bug
I cannot reproduce this issue. If you can provide a reproducer feel free to reopen this and attach your reproducer here.
> After 2 times loading the same Rule 3rd time its not loading, Even No error occured
> -----------------------------------------------------------------------------------
>
> Key: DROOLS-1117
> URL: https://issues.jboss.org/browse/DROOLS-1117
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.4.0.CR2
> Reporter: Vivek Singh
> Assignee: Mario Fusco
>
> While Loading the Rules in Server, After that i removed the Rule from KieBase then again
> added the Rule By creating the newJar with different ReleaseId but same Drl filename.
> Then i again removed the rule from KieBase using same command
> kieBase.removeRule(kiePackage.getName(), ruleName);
> But after that when i again added the same Rule it will not adding into the KieBase Knowledge packages. Even i am not getting any error.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years
[JBoss JIRA] (DROOLS-1116) After adding new Rule by different drl filename getting error while calling fireRules
by Mario Fusco (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1116?page=com.atlassian.jira.plugi... ]
Mario Fusco resolved DROOLS-1116.
---------------------------------
Resolution: Cannot Reproduce Bug
I cannot reproduce this issue. If you can provide a reproducer feel free to reopen this and attach your reproducer here.
> After adding new Rule by different drl filename getting error while calling fireRules
> -------------------------------------------------------------------------------------
>
> Key: DROOLS-1116
> URL: https://issues.jboss.org/browse/DROOLS-1116
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.4.0.CR2
> Reporter: Vivek Singh
> Assignee: Mario Fusco
>
> Issue is similar to https://issues.jboss.org/browse/DROOLS-978
> But its showing its fixed in 6.4.0.Beta1 but i am still lfacing in 6.4.0.CR2
> While Adding the new or Updated Rules by createKieJar.
> Even renaming the Drool file.
> After that while calling the fireRules i am getting the below error:-
> Exception in thread "main" java.lang.NullPointerException
> at org.drools.core.reteoo.NodeTypeEnums.isBetaNode(NodeTypeEnums.java:88)
> at org.drools.core.phreak.RuleNetworkEvaluator.innerEval(RuleNetworkEvaluator.java:254)
> at org.drools.core.phreak.RuleNetworkEvaluator.outerEval(RuleNetworkEvaluator.java:166)
> at org.drools.core.phreak.RuleNetworkEvaluator.evaluateNetwork(RuleNetworkEvaluator.java:123)
> at org.drools.core.phreak.RuleExecutor.evaluateNetwork(RuleExecutor.java:65)
> at org.drools.core.common.DefaultAgenda.evaluateEagerList(DefaultAgenda.java:1004)
> at org.drools.core.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:961)
> at org.drools.core.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1292)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.internalFireAllRules(StatefulKnowledgeSessionImpl.java:1294)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1281)
> at org.drools.core.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:1260
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
10 years