[JBoss JIRA] (DROOLS-2643) Extraneous parentheses generated by Guided Rule editor
by Jozef Marko (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2643?page=com.atlassian.jira.plugi... ]
Jozef Marko updated DROOLS-2643:
--------------------------------
Git Pull Request: https://github.com/kiegroup/drools/pull/1953 (was: https://github.com/kiegroup/drools/pull/1952)
> Extraneous parentheses generated by Guided Rule editor
> ------------------------------------------------------
>
> Key: DROOLS-2643
> URL: https://issues.jboss.org/browse/DROOLS-2643
> Project: Drools
> Issue Type: Bug
> Components: Guided Rule Editor
> Affects Versions: 7.8.0.Final
> Environment: RHDM 7.0.0.GA on Oracle JDK 1.8.0_172 on Mac OSX 10.13.5
> Reporter: Jozef Marko
> Assignee: Michael Anstis
> Priority: Minor
> Labels: Central, Decision, RHDM
>
> The Guided Rule editor inserts extraneous parentheses in the generated DRL around the phrase "(OrderLine : quantity > 0) from $o.orderlines)" as shown below:
> package com.redhat.rhdm.demo;
> import java.lang.Number;
> rule "SpecialHandlingGuidedRule"
> dialect "mvel"
> when
> $o : Order( orderlines.size() > 0 )
> Number( intValue() > 100 ) from accumulate ( (OrderLine( $q : quantity > 0 ) from $o.orderlines)
> ,
> sum($q))
> then
> end
> This above DRL will fail to validate. If the extraneous parentheses are removed, as shown below, then the DRL is valid.
> package com.redhat.rhdm.demo;
> import java.lang.Number;
> rule "Assign Special Handling for Large Orders"
> dialect "mvel"
> when
> $o : Order( orderlines.size() > 0 )
> Number( intValue() > 100 )
> from accumulate (OrderLine( $q : quantity > 0 ) from $o.orderlines, sum($q))
> then
> $o.setIsSpecial( true )
> end
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month
[JBoss JIRA] (DROOLS-2643) Extraneous parentheses generated by Guided Rule editor
by Jozef Marko (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2643?page=com.atlassian.jira.plugi... ]
Jozef Marko updated DROOLS-2643:
--------------------------------
Tester: Jozef Marko (was: Michael Anstis)
> Extraneous parentheses generated by Guided Rule editor
> ------------------------------------------------------
>
> Key: DROOLS-2643
> URL: https://issues.jboss.org/browse/DROOLS-2643
> Project: Drools
> Issue Type: Bug
> Components: Guided Rule Editor
> Affects Versions: 7.8.0.Final
> Environment: RHDM 7.0.0.GA on Oracle JDK 1.8.0_172 on Mac OSX 10.13.5
> Reporter: Jozef Marko
> Assignee: Michael Anstis
> Priority: Minor
> Labels: Central, Decision, RHDM
>
> The Guided Rule editor inserts extraneous parentheses in the generated DRL around the phrase "(OrderLine : quantity > 0) from $o.orderlines)" as shown below:
> package com.redhat.rhdm.demo;
> import java.lang.Number;
> rule "SpecialHandlingGuidedRule"
> dialect "mvel"
> when
> $o : Order( orderlines.size() > 0 )
> Number( intValue() > 100 ) from accumulate ( (OrderLine( $q : quantity > 0 ) from $o.orderlines)
> ,
> sum($q))
> then
> end
> This above DRL will fail to validate. If the extraneous parentheses are removed, as shown below, then the DRL is valid.
> package com.redhat.rhdm.demo;
> import java.lang.Number;
> rule "Assign Special Handling for Large Orders"
> dialect "mvel"
> when
> $o : Order( orderlines.size() > 0 )
> Number( intValue() > 100 )
> from accumulate (OrderLine( $q : quantity > 0 ) from $o.orderlines, sum($q))
> then
> $o.setIsSpecial( true )
> end
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month
[JBoss JIRA] (DROOLS-2643) Extraneous parentheses generated by Guided Rule editor
by Jozef Marko (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2643?page=com.atlassian.jira.plugi... ]
Jozef Marko reassigned DROOLS-2643:
-----------------------------------
Assignee: Michael Anstis (was: Jozef Marko)
> Extraneous parentheses generated by Guided Rule editor
> ------------------------------------------------------
>
> Key: DROOLS-2643
> URL: https://issues.jboss.org/browse/DROOLS-2643
> Project: Drools
> Issue Type: Bug
> Components: Guided Rule Editor
> Affects Versions: 7.8.0.Final
> Environment: RHDM 7.0.0.GA on Oracle JDK 1.8.0_172 on Mac OSX 10.13.5
> Reporter: Jozef Marko
> Assignee: Michael Anstis
> Priority: Minor
> Labels: Central, Decision, RHDM
>
> The Guided Rule editor inserts extraneous parentheses in the generated DRL around the phrase "(OrderLine : quantity > 0) from $o.orderlines)" as shown below:
> package com.redhat.rhdm.demo;
> import java.lang.Number;
> rule "SpecialHandlingGuidedRule"
> dialect "mvel"
> when
> $o : Order( orderlines.size() > 0 )
> Number( intValue() > 100 ) from accumulate ( (OrderLine( $q : quantity > 0 ) from $o.orderlines)
> ,
> sum($q))
> then
> end
> This above DRL will fail to validate. If the extraneous parentheses are removed, as shown below, then the DRL is valid.
> package com.redhat.rhdm.demo;
> import java.lang.Number;
> rule "Assign Special Handling for Large Orders"
> dialect "mvel"
> when
> $o : Order( orderlines.size() > 0 )
> Number( intValue() > 100 )
> from accumulate (OrderLine( $q : quantity > 0 ) from $o.orderlines, sum($q))
> then
> $o.setIsSpecial( true )
> end
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month
[JBoss JIRA] (WFLY-10520) Add Hibernate ORM 5.3 compatibility transformer
by Scott Marlow (JIRA)
[ https://issues.jboss.org/browse/WFLY-10520?page=com.atlassian.jira.plugin... ]
Scott Marlow commented on WFLY-10520:
-------------------------------------
FYI, current log output is shown [here |https://paste.fedoraproject.org/paste/6bvbvSx8Ny4t7GlSgitMAw]. Perhaps the "Hibernate51CompatibilityTransformer transforming deployment class..." message should be logged as DEBUG, instead of INFO. As that is likely to fill the log. I'll make that change unless I hear from others.
> Add Hibernate ORM 5.3 compatibility transformer
> -----------------------------------------------
>
> Key: WFLY-10520
> URL: https://issues.jboss.org/browse/WFLY-10520
> Project: WildFly
> Issue Type: Task
> Components: JPA / Hibernate
> Reporter: Gail Badner
> Assignee: Scott Marlow
> Fix For: 14.0.0.CR1
>
>
> A compatibility transformer needs to be added to address Hibernate ORM 5.3 API methods that are no longer compatible with 5.1.
> From https://docs.google.com/document/d/1cAVBdeQXQfpTwH0f_GKSahh_gRd7bKI6kII-w...
> # Change call to org.hibernate.BasicQueryContract.getFlushMode() to instead call BasicQueryContract.getHibernateFlushMode().
> # Change call to org.hibernate.Session.getFlushMode, to instead call Session.getHibernateFlushMode()
> # Modify calls to org.hibernate.Query.getFirstResult() to convert returned int, to Integer result.
> # Modify calls to org.hibernate.Query.getMaxResults() to convert returned int, to Integer result, if returned int value is <= 0, null should be used, if Integer.MAX_VALUE is, the transformer should replace with null reference.
> # App References to Enum org.hibernate.FlushMode.NEVER (0) should be transformed to reference FlushMode.MANUAL (0) instead.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month
[JBoss JIRA] (WFLY-10615) Duplicate layer 'base' in integration/elytron testsuite
by Jan Kalina (JIRA)
Jan Kalina created WFLY-10615:
---------------------------------
Summary: Duplicate layer 'base' in integration/elytron testsuite
Key: WFLY-10615
URL: https://issues.jboss.org/browse/WFLY-10615
Project: WildFly
Issue Type: Bug
Components: Test Suite
Affects Versions: 13.0.0.Final
Reporter: Jan Kalina
Assignee: Jan Kalina
Testsuite wildfly/testsuite/integration/elytron has workarounded module path problem:
{code}
MSC000001: Failed to start service jboss.patching.manager: org.jboss.msc.service.StartException in service jboss.patching.manager: java.lang.IllegalStateException: Duplicate layer 'base'
at org.jboss.as.patching.installation.InstallationManagerService.start(InstallationManagerService.java:106)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1736)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1698)
at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1556)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException: Duplicate layer 'base'
at org.jboss.as.patching.installation.LayersFactory$ProcessedLayers.addLayer(LayersFactory.java:305)
at org.jboss.as.patching.installation.LayersFactory.processRoot(LayersFactory.java:182)
at org.jboss.as.patching.installation.LayersFactory.process(LayersFactory.java:127)
at org.jboss.as.patching.installation.LayersFactory.load(LayersFactory.java:86)
at org.jboss.as.patching.installation.InstallationManagerImpl.<init>(InstallationManagerImpl.java:47)
at org.jboss.as.patching.installation.InstallationManager.load(InstallationManager.java:185)
at org.jboss.as.patching.installation.InstallationManagerService.load(InstallationManagerService.java:128)
at org.jboss.as.patching.installation.InstallationManagerService.start(InstallationManagerService.java:63)
... 8 more
{code}
This is currently workarounded using following in pom.xml:
{code}
<!-- let's override the module.path parent configuration with dummy value, to avoid the "IllegalStateException: Duplicate layer 'base'" -->
<module.path>foo</module.path>
{code}
But this prevent using `org.jboss.as.test.module.util.TestModule`, as it try to put created module into "foo", which fails - blocks adding tests using custom modules.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month
[JBoss JIRA] (WFCORE-3941) elytron-tool.sh script detects JBOSS_HOME incorrectly
by Tomas Hofman (JIRA)
[ https://issues.jboss.org/browse/WFCORE-3941?page=com.atlassian.jira.plugi... ]
Tomas Hofman reassigned WFCORE-3941:
------------------------------------
Assignee: Paramvir Jindal
> elytron-tool.sh script detects JBOSS_HOME incorrectly
> -----------------------------------------------------
>
> Key: WFCORE-3941
> URL: https://issues.jboss.org/browse/WFCORE-3941
> Project: WildFly Core
> Issue Type: Bug
> Components: Scripts
> Affects Versions: 5.0.0.Final, 6.0.0.Alpha1
> Reporter: Paramvir Jindal
> Assignee: Paramvir Jindal
>
> If JBOSS_HOME is set then :
> Running $JBOSS_HOME/bin/elytron-tool.sh results in a warning:
> WARNING JBOSS_HOME may be pointing to a different installation - unpredictable results may occur.
> This script has two issues :
> It sets *SANITIZED_JBOSS_HOME* to *$JBOSS_HOME/..* instead of *$JBOSS_HOME*
> It compares *RESOLVED_JBOSS* to *SANITIZED_JBOSS_HOME*, instead of *RESOLVED_JBOSS_HOME*
> *Current elytron-tool.sh :*
> ----------------------------------------------------------------------------------
> RESOLVED_JBOSS_HOME=`cd "$DIRNAME/.."; pwd`
> if [ "x$JBOSS_HOME" = "x" ]; then
> JBOSS_HOME=$RESOLVED_JBOSS_HOME
> else
> SANITIZED_JBOSS_HOME=`cd "$JBOSS_HOME/.."; pwd`
> if [ "$RESOLVED_JBOSS" != "$SANITIZED_JBOSS_HOME" ]; then
> echo "WARNING JBOSS_HOME may be pointing to a different installation - unpredictable results may occur."
> echo ""
> fi
> fi
> export JBOSS_HOME
> ---------------------------------------------------------------------------------
> *Expected elytron-tool.sh*
> ---------------------------------------------------------------------------------
> RESOLVED_JBOSS_HOME=`cd "$DIRNAME/.."; pwd`
> if [ "x$JBOSS_HOME" = "x" ]; then
> JBOSS_HOME=$RESOLVED_JBOSS_HOME
> else
> SANITIZED_JBOSS_HOME=`cd "$JBOSS_HOME"; pwd`
> if [ "$RESOLVED_JBOSS_HOME" != "$SANITIZED_JBOSS_HOME" ]; then
> echo "WARNING JBOSS_HOME may be pointing to a different installation - unpredictable results may occur."
> echo ""
> fi
> fi
> export JBOSS_HOME
> ------------------------------------------------------------------------------
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month
[JBoss JIRA] (SWSQE-307) Other Istio example apps into pipeline
by Hayk Hovsepyan (JIRA)
Hayk Hovsepyan created SWSQE-307:
------------------------------------
Summary: Other Istio example apps into pipeline
Key: SWSQE-307
URL: https://issues.jboss.org/browse/SWSQE-307
Project: Kiali QE
Issue Type: QE Task
Reporter: Hayk Hovsepyan
Assignee: Michael Foley
Currently in our CI/CD Pipeline we install only bookinfo, but there are other applications as well, which are used by devs for internal testing.
Would be good to have installation option for these applications in Pipeline as well:
"helloworld", "httpbin", "sleep".
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years, 1 month