[JBoss JIRA] (WFCORE-4287) CLI should show not show default value once value one of "alternatives" attributes was set
by Brian Stansberry (Jira)
[ https://issues.jboss.org/browse/WFCORE-4287?page=com.atlassian.jira.plugi... ]
Brian Stansberry reassigned WFCORE-4287:
----------------------------------------
Assignee: (was: Brian Stansberry)
> CLI should show not show default value once value one of "alternatives" attributes was set
> ------------------------------------------------------------------------------------------
>
> Key: WFCORE-4287
> URL: https://issues.jboss.org/browse/WFCORE-4287
> Project: WildFly Core
> Issue Type: Enhancement
> Components: Management
> Reporter: Miroslav Novak
> Priority: Major
>
> If there are attributes which are "alternatives" and both of them are undefined then default value of one of the attributes is shown in CLI, for example:
> {code}
> [standalone@localhost:9990 /] ls /subsystem=messaging-activemq/server=default
> elytron-domain=undefined
> security-domain=other
> {code}
> at this moment when I try set elytron-domain:
> {code}
> [standalone@localhost:9990 /] /subsystem=messaging-activemq/server=default:write-attribute(name=elytron-domain,value=ApplicationRealm)
> {code}
> then it shows:
> {code}
> [standalone@localhost:9990 /] ls /subsystem=messaging-activemq/server=default
> elytron-domain=ApplicationDomain
> security-domain=other
> {code}
> Can this be changed that it would show {{security-domain=undefined}} so it would not show default values anymore? Current display is confusing as it's not clear what is used.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 5 months
[JBoss JIRA] (ELY-1748) Add support for a BiFunction<T, U, V> to TokenSecurityRealm.Builder for the principalClaimName
by Scott Stark (Jira)
[ https://issues.jboss.org/browse/ELY-1748?page=com.atlassian.jira.plugin.s... ]
Scott Stark commented on ELY-1748:
----------------------------------
I ended up just adding an overloaded principalClaimNameI(Funtion<Attributes,String> func) method to the TokenSecurityRealm.Builder. The usage is illustrated in the org.wildfly.security.auth.realm.token.JwtSecurityRealmTest#{testAltPrincipaNames,testAltPrincipaNamesSubFallback} methods.
> Add support for a BiFunction<T,U,V> to TokenSecurityRealm.Builder for the principalClaimName
> --------------------------------------------------------------------------------------------
>
> Key: ELY-1748
> URL: https://issues.jboss.org/browse/ELY-1748
> Project: WildFly Elytron
> Issue Type: Task
> Components: Realms
> Affects Versions: 1.7.0.Final
> Reporter: Scott Stark
> Assignee: Scott Stark
> Priority: Major
> Original Estimate: 1 hour
> Remaining Estimate: 1 hour
>
> I'm looking at using ELY to replace some of the custom auth code we have for the MP-JWT implementation in thorntail and elsewhere. While looking at using the org.wildfly.security.auth.realm.token.TokenSecurityRealm, I see that the claim used to extract the principal name from the token is a fixed claim name. In the MP-JWT spec we allow for a series of claims to be checked in a given order to attempt to obtain the principal name. What is needed is a BiFunction<BearerTokenEvidence,Attributes,String> or perhaps just a Funtion<Attributes,String> principalClaimNameFunction() method on the Builder to externalize the claim to principal name mapping.
> I'll look at creating a pull request for this.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 5 months
[JBoss JIRA] (WFLY-11645) A way to prevent automatic changes of affinity when invoking clustered beans
by Brian Stansberry (Jira)
[ https://issues.jboss.org/browse/WFLY-11645?page=com.atlassian.jira.plugin... ]
Brian Stansberry updated WFLY-11645:
------------------------------------
Issue Type: Feature Request (was: Enhancement)
Actually this is not an Enhancement, it is a Feature Request, as it involves a new form of user control of behavior.
> A way to prevent automatic changes of affinity when invoking clustered beans
> ----------------------------------------------------------------------------
>
> Key: WFLY-11645
> URL: https://issues.jboss.org/browse/WFLY-11645
> Project: WildFly
> Issue Type: Feature Request
> Components: Clustering, EJB
> Reporter: Jan Martiska
> Priority: Major
>
> When invoking a clustered bean, a user might want to set an affinity so that the invocations go to a particular node. This is done via EJB client APIs:
> {noformat}
> EJBClient.setStrongAffinity(beanProxy, new NodeAffinity("node1"));
> {noformat}
> however, if the bean is clustered, after each invocation, the affinity is automatically reset to a ClusterAffinity. So the user would have to apply this again before each invocation. There should be a way to tell EJB client to not do this.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 5 months
[JBoss JIRA] (WFLY-11645) A way to prevent automatic changes of affinity when invoking clustered beans
by Brian Stansberry (Jira)
[ https://issues.jboss.org/browse/WFLY-11645?page=com.atlassian.jira.plugin... ]
Brian Stansberry reassigned WFLY-11645:
---------------------------------------
Assignee: (was: Jason Greene)
> A way to prevent automatic changes of affinity when invoking clustered beans
> ----------------------------------------------------------------------------
>
> Key: WFLY-11645
> URL: https://issues.jboss.org/browse/WFLY-11645
> Project: WildFly
> Issue Type: Enhancement
> Components: Clustering, EJB
> Reporter: Jan Martiska
> Priority: Major
>
> When invoking a clustered bean, a user might want to set an affinity so that the invocations go to a particular node. This is done via EJB client APIs:
> {noformat}
> EJBClient.setStrongAffinity(beanProxy, new NodeAffinity("node1"));
> {noformat}
> however, if the bean is clustered, after each invocation, the affinity is automatically reset to a ClusterAffinity. So the user would have to apply this again before each invocation. There should be a way to tell EJB client to not do this.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 5 months
[JBoss JIRA] (WFLY-11645) A way to prevent automatic changes of affinity when invoking clustered beans
by Brian Stansberry (Jira)
[ https://issues.jboss.org/browse/WFLY-11645?page=com.atlassian.jira.plugin... ]
Brian Stansberry moved JBEAP-13233 to WFLY-11645:
-------------------------------------------------
Project: WildFly (was: JBoss Enterprise Application Platform)
Key: WFLY-11645 (was: JBEAP-13233)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: Clustering
EJB
(was: Clustering)
(was: EJB)
Target Release: (was: 7.1.0.GA)
Affects Version/s: (was: 7.1.0.CR2)
> A way to prevent automatic changes of affinity when invoking clustered beans
> ----------------------------------------------------------------------------
>
> Key: WFLY-11645
> URL: https://issues.jboss.org/browse/WFLY-11645
> Project: WildFly
> Issue Type: Enhancement
> Components: Clustering, EJB
> Reporter: Jan Martiska
> Assignee: Jason Greene
> Priority: Major
>
> When invoking a clustered bean, a user might want to set an affinity so that the invocations go to a particular node. This is done via EJB client APIs:
> {noformat}
> EJBClient.setStrongAffinity(beanProxy, new NodeAffinity("node1"));
> {noformat}
> however, if the bean is clustered, after each invocation, the affinity is automatically reset to a ClusterAffinity. So the user would have to apply this again before each invocation. There should be a way to tell EJB client to not do this.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 5 months
[JBoss JIRA] (ELY-1748) Add support for a BiFunction<T, U, V> to TokenSecurityRealm.Builder for the principalClaimName
by Scott Stark (Jira)
Scott Stark created ELY-1748:
--------------------------------
Summary: Add support for a BiFunction<T,U,V> to TokenSecurityRealm.Builder for the principalClaimName
Key: ELY-1748
URL: https://issues.jboss.org/browse/ELY-1748
Project: WildFly Elytron
Issue Type: Task
Components: Realms
Affects Versions: 1.7.0.Final
Reporter: Scott Stark
Assignee: Scott Stark
I'm looking at using ELY to replace some of the custom auth code we have for the MP-JWT implementation in thorntail and elsewhere. While looking at using the org.wildfly.security.auth.realm.token.TokenSecurityRealm, I see that the claim used to extract the principal name from the token is a fixed claim name. In the MP-JWT spec we allow for a series of claims to be checked in a given order to attempt to obtain the principal name. What is needed is a BiFunction<BearerTokenEvidence,Attributes,String> or perhaps just a Funtion<Attributes,String> principalClaimNameFunction() method on the Builder to externalize the claim to principal name mapping.
I'll look at creating a pull request for this.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 5 months
[JBoss JIRA] (DROOLS-3477) MVEL: expression (1 + 2 * 3 + 4 * $v ) causes "no such method or function " for bind variable
by Mario Fusco (Jira)
[ https://issues.jboss.org/browse/DROOLS-3477?page=com.atlassian.jira.plugi... ]
Mario Fusco reopened DROOLS-3477:
---------------------------------
> MVEL: expression (1 + 2 * 3 + 4 * $v ) causes "no such method or function " for bind variable
> -----------------------------------------------------------------------------------------------
>
> Key: DROOLS-3477
> URL: https://issues.jboss.org/browse/DROOLS-3477
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.11.0.Final
> Environment: MVEL2 2.4.2 Final
> Reporter: Hiroko Miura
> Assignee: Mario Fusco
> Priority: Major
> Attachments: mvel2-var-test2.zip, mvel2-var-test3.zip
>
>
> Similar issue was reported and fixed in DROOLS-2854, there is another pattern which does not work.
> When MVEL evaluates
> m.setStatus( 1 + 2 * 3 + 4 * m.getStatus() );
> the following exception happens.
> {noformat}
> Exception executing consequence for rule "Hello World" in com.sample: [Error: no such method or function: m]
> [Near : {... m.setStatus( 1 + 2 * 3 + 4 * m.getStatus() ); ....}]
> {noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 5 months