[JBoss JIRA] (WFLY-7796) Java EE 7 API: Bug in javaee-api-7.0.jar
by Dmitrii Tikhomirov (JIRA)
[ https://issues.jboss.org/browse/WFLY-7796?page=com.atlassian.jira.plugin.... ]
Dmitrii Tikhomirov reassigned WFLY-7796:
----------------------------------------
Assignee: Dmitrii Tikhomirov (was: Farah Juma)
> Java EE 7 API: Bug in javaee-api-7.0.jar
> ----------------------------------------
>
> Key: WFLY-7796
> URL: https://issues.jboss.org/browse/WFLY-7796
> Project: WildFly
> Issue Type: Bug
> Components: JSF
> Affects Versions: 10.1.0.Final
> Reporter: Markus Pollak
> Assignee: Dmitrii Tikhomirov
>
> Hello,
> I’ve found a bug in the javaee-api-7.0.jar:
> *Problem:*
> javax.faces.validator.ValueExpressionAnalyzer$InterceptingResolver should also override (and delegate) the method "invoke" from ELResolver otherwise the BeanValidator wouldn’t support expressions with method invocations (e.g. #{exampleBean.anyMethod(anyParam).value}. Currently it doesn’t override the method so the default implementation is taken which returns null and leads to problems…
> Best Regards,
> Markus Pollak
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 2 months
[JBoss JIRA] (WFLY-7796) Java EE 7 API: unable to validate expressions with method invocations
by Dmitrii Tikhomirov (JIRA)
[ https://issues.jboss.org/browse/WFLY-7796?page=com.atlassian.jira.plugin.... ]
Dmitrii Tikhomirov updated WFLY-7796:
-------------------------------------
Summary: Java EE 7 API: unable to validate expressions with method invocations (was: Java EE 7 API: Bug in javaee-api-7.0.jar)
> Java EE 7 API: unable to validate expressions with method invocations
> ---------------------------------------------------------------------
>
> Key: WFLY-7796
> URL: https://issues.jboss.org/browse/WFLY-7796
> Project: WildFly
> Issue Type: Bug
> Components: JSF
> Affects Versions: 10.1.0.Final
> Reporter: Markus Pollak
> Assignee: Dmitrii Tikhomirov
>
> Hello,
> I’ve found a bug in the javaee-api-7.0.jar:
> *Problem:*
> javax.faces.validator.ValueExpressionAnalyzer$InterceptingResolver should also override (and delegate) the method "invoke" from ELResolver otherwise the BeanValidator wouldn’t support expressions with method invocations (e.g. #{exampleBean.anyMethod(anyParam).value}. Currently it doesn’t override the method so the default implementation is taken which returns null and leads to problems…
> Best Regards,
> Markus Pollak
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 2 months
[JBoss JIRA] (WFLY-8062) Some OSH's in the Elytron subsystem don't validate the server type before registering steps
by James Perkins (JIRA)
James Perkins created WFLY-8062:
-----------------------------------
Summary: Some OSH's in the Elytron subsystem don't validate the server type before registering steps
Key: WFLY-8062
URL: https://issues.jboss.org/browse/WFLY-8062
Project: WildFly
Issue Type: Bug
Components: Security
Reporter: James Perkins
Assignee: James Perkins
Priority: Blocker
Fix For: 11.0.0.Alpha1
In the Elytron subsystem there are implementations of {{org.jboss.as.controller.OperationStepHandler}} that do not check the state of the {{OperationContext}} before registering runtime steps. This is an issue for domain servers as the steps will be registered on the host-controller even if the operations is being executed on a profile.
For example:
{code:java}
@Override
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
context.addStep(operation, (parentContext, parentOperation) -> {
ModifiableRealmIdentity realmIdentity = getRealmIdentity(parentContext);
List<ModelNode> modelNodes = parentOperation.asList();
Property passwordProperty = modelNodes.get(2).asProperty();
PathAddress currentAddress = parentContext.getCurrentAddress();
String principalName = currentAddress.getLastElement().getValue();
try {
realmIdentity.setCredentials(Collections.singleton(new PasswordCredential(createPassword(parentContext, principalName, passwordProperty))));
} catch (NoSuchAlgorithmException | InvalidKeySpecException | RealmUnavailableException e) {
throw ROOT_LOGGER.couldNotCreatePassword(e);
}
parentContext.completeStep(NOOP_RESULT_HANDLER);
}, OperationContext.Stage.RUNTIME);
}
{code}
Should check the {{context.isDefaultRequiresRuntime()}}:
{code:java}
@Override
public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
if (context.isDefaultRequiresRuntime()) {
context.addStep(operation, (parentContext, parentOperation) -> {
ModifiableRealmIdentity realmIdentity = getRealmIdentity(parentContext);
List<ModelNode> modelNodes = parentOperation.asList();
Property passwordProperty = modelNodes.get(2).asProperty();
PathAddress currentAddress = parentContext.getCurrentAddress();
String principalName = currentAddress.getLastElement().getValue();
try {
realmIdentity.setCredentials(Collections.singleton(new PasswordCredential(createPassword(parentContext, principalName, passwordProperty))));
} catch (NoSuchAlgorithmException | InvalidKeySpecException | RealmUnavailableException e) {
throw ROOT_LOGGER.couldNotCreatePassword(e);
}
parentContext.completeStep(NOOP_RESULT_HANDLER);
}, OperationContext.Stage.RUNTIME);
}
}
{code}
The handlers should be analyzed to ensure they check the state before registering runtime steps.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 2 months
[JBoss JIRA] (WFLY-8061) Support role mapping from jboss deployment descriptors in undertow subsystem
by Pedro Igor (JIRA)
Pedro Igor created WFLY-8061:
--------------------------------
Summary: Support role mapping from jboss deployment descriptors in undertow subsystem
Key: WFLY-8061
URL: https://issues.jboss.org/browse/WFLY-8061
Project: WildFly
Issue Type: Enhancement
Components: Security, Web (Undertow)
Reporter: Pedro Igor
Assignee: Darran Lofthouse
Currently, role mapping from jboss-web.xml and jboss-app.xml are not taken into consideration when mapping roles for an identity in Elytron.
This already being done by ejb subsystem, but we lack in web/undertow subsystem.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 2 months
[JBoss JIRA] (WFLY-8060) Restore distributed SFSB cache key marshalling optimization
by Paul Ferraro (JIRA)
[ https://issues.jboss.org/browse/WFLY-8060?page=com.atlassian.jira.plugin.... ]
Paul Ferraro moved JBEAP-8739 to WFLY-8060:
-------------------------------------------
Project: WildFly (was: JBoss Enterprise Application Platform)
Key: WFLY-8060 (was: JBEAP-8739)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: Clustering
EJB
(was: Clustering)
(was: EJB)
> Restore distributed SFSB cache key marshalling optimization
> -----------------------------------------------------------
>
> Key: WFLY-8060
> URL: https://issues.jboss.org/browse/WFLY-8060
> Project: WildFly
> Issue Type: Bug
> Components: Clustering, EJB
> Reporter: Paul Ferraro
> Assignee: Paul Ferraro
>
> As part of EAP7-552, EJBs use a new SessionID implementation for which we don't currently have an externalizer. This causes Infinispan to unnecessarily marshal and send class descriptors for each cache operation.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 2 months