[JBoss JIRA] (ELY-1448) API Compatibility for org.wildfly.security.mechanism.MechanismUtil
by Jan Kalina (JIRA)
[ https://issues.jboss.org/browse/ELY-1448?page=com.atlassian.jira.plugin.s... ]
Jan Kalina commented on ELY-1448:
---------------------------------
The API breaking is already handled by ELY-1452 - this issue should aim the class deprecating/moving into private package.
> API Compatibility for org.wildfly.security.mechanism.MechanismUtil
> ------------------------------------------------------------------
>
> Key: ELY-1448
> URL: https://issues.jboss.org/browse/ELY-1448
> Project: WildFly Elytron
> Issue Type: Bug
> Components: API / SPI
> Reporter: Darran Lofthouse
> Priority: Blocker
> Fix For: 1.2.0.Beta11
>
>
> Backwards compatibility has been broken on the public handleCallbacks methods so this needs to be fixed.
> However this class should not really be a public API, it has been picked up in the package as we have the AuthenticationMechanismException which does need to be public.
> The entire class should be deprecated and the impl moved to a private package.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 5 months
[JBoss JIRA] (ELY-728) The map backing SimpleMapBackedSecurityRealm should be an identity map not a password map.
by Jan Kalina (JIRA)
[ https://issues.jboss.org/browse/ELY-728?page=com.atlassian.jira.plugin.sy... ]
Jan Kalina commented on ELY-728:
--------------------------------
So the realm should be backed by {{Map<String, SimpleMapRealmIdentity>}} instead of {{Map<String, SimpleRealmEntry>}} and creating identities on obtaining - what is the point?
The realm can be used without stored credentials already now, or not?
> The map backing SimpleMapBackedSecurityRealm should be an identity map not a password map.
> ------------------------------------------------------------------------------------------
>
> Key: ELY-728
> URL: https://issues.jboss.org/browse/ELY-728
> Project: WildFly Elytron
> Issue Type: Task
> Components: API / SPI, Realms
> Reporter: Darran Lofthouse
> Priority: Critical
> Fix For: 1.2.0.Beta12
>
>
> This realm is useful in cases where we need an identity to exist where the mechanism has performed validation without requiring access to credentials.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 5 months
[JBoss JIRA] (DROOLS-2162) Error evaluating constraint
by Herve Remisio (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2162?page=com.atlassian.jira.plugi... ]
Herve Remisio closed DROOLS-2162.
---------------------------------
Release Notes Text:
The issue was happening because we need to check if the attribute is NULL first.
Maybe the exception should be more clear. That would help to understand that the issue is a simple NPE.
Resolution: Rejected
> Error evaluating constraint
> ---------------------------
>
> Key: DROOLS-2162
> URL: https://issues.jboss.org/browse/DROOLS-2162
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.4.1.Final
> Reporter: Herve Remisio
> Assignee: Mario Fusco
> Priority: Blocker
> Attachments: 2017-12-04_12-33-29.png
>
>
> We detected a very strange behavior when processing Rules that contain expressions like "...startsWith(..".
> !2017-12-04_12-33-29.png|thumbnail!
> Sometimes this error disappears when we simply re-upload the Rule file and it gets recompiled.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 5 months
[JBoss JIRA] (WFLY-9592) Arrays in Method Parameters are causing EJBAccessException for @PermitAll Methods
by Marcus Handte (JIRA)
[ https://issues.jboss.org/browse/WFLY-9592?page=com.atlassian.jira.plugin.... ]
Marcus Handte commented on WFLY-9592:
-------------------------------------
Ok, I have done some more testing with Wildfly-11.0.0.Final and again with Wildfly-10.1.0.Final just to double check that I am not making this up. You were right, Wildfly-11.0.0.Final does not have the problem with arrays anymore. On Wildfly-10.1.0.Final I am certain that the problem is solely caused by having an array in the parameter list of an accessible (and @PermitAll) session bean method:
java.lang.AssertionError: Should not receive exception. expected null, but was:<javax.ejb.EJBAccessException: WFLYEJB0364: Invocation on method: public com.maptology.api.user.User com.maptology.service.session.UserSessionBean.registerUser(com.maptology.api.user.UserRegistration,com.maptology.api.access.Roles[],long) throws com.maptology.service.entity.EntityConflictException of bean: UserSessionBean is not allowed>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotNull(Assert.java:755)
at org.junit.Assert.assertNull(Assert.java:737)
at com.maptology.service.test.session.UserSessionTest.testRegisterAndEmailVerify(UserSessionTest.java:119)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
If I change Roles[] to List<Roles>, everything works as expected (meaning that I do not get an EJBAccessException anymore9.
> Arrays in Method Parameters are causing EJBAccessException for @PermitAll Methods
> ---------------------------------------------------------------------------------
>
> Key: WFLY-9592
> URL: https://issues.jboss.org/browse/WFLY-9592
> Project: WildFly
> Issue Type: Bug
> Components: EJB
> Affects Versions: 10.1.0.Final
> Environment: Wildfly 10.1.0.Final in an Arquillian Managed Container Test
> Reporter: Marcus Handte
> Priority: Minor
>
> EJB methods with array parameters are causing EJBAccessExceptions when they are annotated with @PermitAll. This bug seemed to be present in 8.0.0.Alpha2 and was fixed (see WFLY-1658). But it seems to be present again in 10.1.0.Final.
> For my own use case, this is not a problem since I can simply change the method signatures to use lists instead of arrays. However, I can imagine that this could be a more significant problem for people trying to run existing code that they do not want to (or cannot) touch.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 5 months
[JBoss JIRA] (WFLY-9592) Arrays in Method Parameters are causing EJBAccessException for @PermitAll Methods
by David Lloyd (JIRA)
[ https://issues.jboss.org/browse/WFLY-9592?page=com.atlassian.jira.plugin.... ]
David Lloyd reopened WFLY-9592:
-------------------------------
[~ctomc], I do not believe that this code is part of or is affected by Elytron. I think that this regression was possibly re-introduced here:
https://github.com/dmlloyd/wildfly/commit/d7675fb0b19d3d22978e79954f441ee...
This commit was merged before the 10.0.0.Beta1 tag. I think the better way to handle this is to say: would it be possible to give this a try on WildFly 11 to ensure that it is still valid?
> Arrays in Method Parameters are causing EJBAccessException for @PermitAll Methods
> ---------------------------------------------------------------------------------
>
> Key: WFLY-9592
> URL: https://issues.jboss.org/browse/WFLY-9592
> Project: WildFly
> Issue Type: Bug
> Components: EJB
> Affects Versions: 10.1.0.Final
> Environment: Wildfly 10.1.0.Final in an Arquillian Managed Container Test
> Reporter: Marcus Handte
> Priority: Minor
>
> EJB methods with array parameters are causing EJBAccessExceptions when they are annotated with @PermitAll. This bug seemed to be present in 8.0.0.Alpha2 and was fixed (see WFLY-1658). But it seems to be present again in 10.1.0.Final.
> For my own use case, this is not a problem since I can simply change the method signatures to use lists instead of arrays. However, I can imagine that this could be a more significant problem for people trying to run existing code that they do not want to (or cannot) touch.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 5 months