[JBoss JIRA] (DROOLS-5051) Mvel type coercion and rounding behavior compatibility between mvel 2.2.8 and 2.4.3
by Toshiya Kobayashi (Jira)
[ https://issues.redhat.com/browse/DROOLS-5051?page=com.atlassian.jira.plug... ]
Toshiya Kobayashi moved RHDM-1236 to DROOLS-5051:
-------------------------------------------------
Project: Drools (was: Red Hat Decision Manager)
Key: DROOLS-5051 (was: RHDM-1236)
Workflow: GIT Pull Request workflow (was: CDW with docs v1)
Docs QE Status: NEW
Component/s: core engine
(was: BRE)
Affects Version/s: 7.33.0.Final
(was: 7.6.0.GA)
QE Status: NEW
> Mvel type coercion and rounding behavior compatibility between mvel 2.2.8 and 2.4.3
> -----------------------------------------------------------------------------------
>
> Key: DROOLS-5051
> URL: https://issues.redhat.com/browse/DROOLS-5051
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.33.0.Final
> Reporter: Toshiya Kobayashi
> Assignee: Toshiya Kobayashi
> Priority: Major
> Labels: support
>
> I have rule like as:
> =========
> rule "My Rule"
> no-loop true
> dialect "mvel"
> when
> $info : MyInfo()
> then
> modify ($info) {
> setResult(15 * Math.round( new BigDecimal("49.4") ) / 100 )
> }
> end
> =========
> If I exeucte this rule in BRMS 6.4.x release, I will get 7.35 in the reponse . But if I execute same rule in RHDM 7.4.+ release I will 7 in the response.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 3 months
[JBoss JIRA] (WFCORE-4841) Logging subsystem capabilities do not work correctly
by James Perkins (Jira)
[ https://issues.redhat.com/browse/WFCORE-4841?page=com.atlassian.jira.plug... ]
James Perkins commented on WFCORE-4841:
---------------------------------------
[~brian.stansberry] yes. I was going to file a JIRA for that part. It seemed weird when I was debugging it. I just wanted to finish this for now, then I'll write a simple test example that fails.
> Logging subsystem capabilities do not work correctly
> ----------------------------------------------------
>
> Key: WFCORE-4841
> URL: https://issues.redhat.com/browse/WFCORE-4841
> Project: WildFly Core
> Issue Type: Bug
> Components: Logging
> Reporter: James Perkins
> Assignee: James Perkins
> Priority: Major
>
> With WFCORE-3337 the logging subsystem introduced capabilities. While looking at WFCORE-966 I determined the capabilities were not correctly implemented. In some cases invalid capabilities are allowed to be add in admin-only mode. In other cases they're allowed to be assigned even when invalid and running a full server.
> The tests are also incorrect. They seemed correct as they checked for failed operations. However the result of the failure was not checked and some of the operations were failing, but not for the reasons expected. This was all a poor design on my part.
> New tests need to be added. One thing I did notice was these tests don't seem to work in a static {{KernelServices}} test controller. For some reason when running against a logging profile the capability recorder seems to be empty. However using a manual mode test works fine. I believe this is just a flaw in the unit test controller. This will require the tests to be moved to manual mode tests so they can be test against an admin-only booted server.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 3 months
[JBoss JIRA] (WFCORE-4841) Logging subsystem capabilities do not work correctly
by Brian Stansberry (Jira)
[ https://issues.redhat.com/browse/WFCORE-4841?page=com.atlassian.jira.plug... ]
Brian Stansberry commented on WFCORE-4841:
------------------------------------------
The bit about needing to use manual mode seems off, i.e. something we should sort. Not a super big priority though.
> Logging subsystem capabilities do not work correctly
> ----------------------------------------------------
>
> Key: WFCORE-4841
> URL: https://issues.redhat.com/browse/WFCORE-4841
> Project: WildFly Core
> Issue Type: Bug
> Components: Logging
> Reporter: James Perkins
> Assignee: James Perkins
> Priority: Major
>
> With WFCORE-3337 the logging subsystem introduced capabilities. While looking at WFCORE-966 I determined the capabilities were not correctly implemented. In some cases invalid capabilities are allowed to be add in admin-only mode. In other cases they're allowed to be assigned even when invalid and running a full server.
> The tests are also incorrect. They seemed correct as they checked for failed operations. However the result of the failure was not checked and some of the operations were failing, but not for the reasons expected. This was all a poor design on my part.
> New tests need to be added. One thing I did notice was these tests don't seem to work in a static {{KernelServices}} test controller. For some reason when running against a logging profile the capability recorder seems to be empty. However using a manual mode test works fine. I believe this is just a flaw in the unit test controller. This will require the tests to be moved to manual mode tests so they can be test against an admin-only booted server.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 3 months
[JBoss JIRA] (WFCORE-4841) Logging subsystem capabilities do not work correctly
by James Perkins (Jira)
James Perkins created WFCORE-4841:
-------------------------------------
Summary: Logging subsystem capabilities do not work correctly
Key: WFCORE-4841
URL: https://issues.redhat.com/browse/WFCORE-4841
Project: WildFly Core
Issue Type: Bug
Components: Logging
Reporter: James Perkins
Assignee: James Perkins
With WFCORE-3337 the logging subsystem introduced capabilities. While looking at WFCORE-966 I determined the capabilities were not correctly implemented. In some cases invalid capabilities are allowed to be add in admin-only mode. In other cases they're allowed to be assigned even when invalid and running a full server.
The tests are also incorrect. They seemed correct as they checked for failed operations. However the result of the failure was not checked and some of the operations were failing, but not for the reasons expected. This was all a poor design on my part.
New tests need to be added. One thing I did notice was these tests don't seem to work in a static {{KernelServices}} test controller. For some reason when running against a logging profile the capability recorder seems to be empty. However using a manual mode test works fine. I believe this is just a flaw in the unit test controller. This will require the tests to be moved to manual mode tests so they can be test against an admin-only booted server.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 3 months