[JBoss JIRA] (DROOLS-3805) All line separators in RHS in spreadsheet are escaped
by Toshiya Kobayashi (Jira)
Toshiya Kobayashi created DROOLS-3805:
-----------------------------------------
Summary: All line separators in RHS in spreadsheet are escaped
Key: DROOLS-3805
URL: https://issues.jboss.org/browse/DROOLS-3805
Project: Drools
Issue Type: Bug
Components: decision tables
Affects Versions: 7.19.0.Final, 7.18.0.Final
Reporter: Toshiya Kobayashi
Assignee: Mario Fusco
By DROOLS-3396, line separators in RHS are now escaped.
https://github.com/kiegroup/drools/blob/7.18.0.Final/drools-decisiontable...
However, it affects entire RHS so if you have multiple lines in ACTION, the result would be like this.
Output from SpreadSheetCompiler:
{noformat}
rule "multiple lines in action_12"
when
$fact:Person(name == "John")
then
modify($fact){\n setAge(30),\n setAlive(false)\n}
/* DEBUG */\nSystem.out.println(" ** " +drools.getRule().getName() + ", $fact = " + $fact);
end
{noformat}
Error when building:
{noformat}
line 1:15 no viable alternative at character '\'
line 1:29 no viable alternative at character '\'
line 1:47 no viable alternative at character '\'
line 2:13 no viable alternative at character '\'
[ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.63 s <<< FAILURE! - in org.drools.decisiontable.LineBreakXLSTest
[ERROR] testMultipleLinesInAction(org.drools.decisiontable.LineBreakXLSTest) Time elapsed: 0.257 s <<< ERROR!
java.lang.NullPointerException
at java.lang.String.indexOf(String.java:1718)
at org.drools.compiler.rule.builder.dialect.DialectUtil.rewriteModifyDescr(DialectUtil.java:631)
at org.drools.compiler.rule.builder.dialect.DialectUtil.rewriteDescr(DialectUtil.java:580)
at org.drools.compiler.rule.builder.dialect.DialectUtil.fixBlockDescr(DialectUtil.java:161)
at org.drools.compiler.rule.builder.dialect.DialectUtil.fixBlockDescr(DialectUtil.java:119)
at org.drools.compiler.rule.builder.dialect.asm.AbstractASMConsequenceBuilder.consequenceContext(AbstractASMConsequenceBuilder.java:57)
at org.drools.compiler.rule.builder.dialect.asm.AbstractASMConsequenceBuilder.build(AbstractASMConsequenceBuilder.java:33)
at org.drools.compiler.rule.builder.RuleBuilder.build(RuleBuilder.java:126)
at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.internalAddRule(KnowledgeBuilderImpl.java:1204)
at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.addRule(KnowledgeBuilderImpl.java:1195)
at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.compileRulesLevel(KnowledgeBuilderImpl.java:1173)
at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.compileRules(KnowledgeBuilderImpl.java:1121)
at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.compileKnowledgePackages(KnowledgeBuilderImpl.java:946)
at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.addPackage(KnowledgeBuilderImpl.java:937)
at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.addPackageFromDecisionTable(KnowledgeBuilderImpl.java:371)
at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.addKnowledgeResource(KnowledgeBuilderImpl.java:759)
at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:2288)
at org.drools.decisiontable.LineBreakXLSTest.testMultipleLinesInAction(LineBreakXLSTest.java:53)
...
{noformat}
Escaping should be done only for literal String?
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 9 months
[JBoss JIRA] (DROOLS-3798) [DMN Designer] Included Models - Show imported nodes in the graph when a DMN with imported nodes is opened
by Guilherme Gomes (Jira)
[ https://issues.jboss.org/browse/DROOLS-3798?page=com.atlassian.jira.plugi... ]
Guilherme Gomes reassigned DROOLS-3798:
---------------------------------------
Assignee: Daniel José dos Santos (was: Guilherme Gomes)
> [DMN Designer] Included Models - Show imported nodes in the graph when a DMN with imported nodes is opened
> ----------------------------------------------------------------------------------------------------------
>
> Key: DROOLS-3798
> URL: https://issues.jboss.org/browse/DROOLS-3798
> Project: Drools
> Issue Type: Task
> Components: DMN Editor
> Reporter: Guilherme Gomes
> Assignee: Daniel José dos Santos
> Priority: Major
> Labels: drools-tools
> Attachments: daniel1.dmn, daniel2.dmn
>
>
> When users open the DMN editor with an imported file+ imported nodes, they must be able to see these nodes on read-only mode.
> ---
> Assets:
> - [^daniel1.dmn]
> - [^daniel2.dmn]
> ---
> This task comprehends:
> - Read imported nodes in the "daniel2.dmn", and put them into the canvas by consuming a *mocked service class* [1] to fill the node information;
> - Create the new imported nodes in the canvas;
> - Persist imported nodes info properly in the DMN file (when users save it);
> - Keep these imported nodes on read-only mode;
> - Keep the properties panel correctly updated.
> ---
> Acceptance criteria:
> - Open the "daniel2.dmn"
> - See the imported nodes from the "daniel1.dmn"
> - Try to change the name of the node (this should not be allowed, since the node must be on read only mode)
> - Check the properties panel properties
> ---
> [1] This service class will be responsible for returning all information from a given node from another DMN file. This API will be something like this: {{ExternalDMNFileService.getNode(final String dmnElementRef)}}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 9 months
[JBoss JIRA] (DROOLS-3798) [DMN Designer] Included Models - Show imported nodes in the graph when a DMN with imported nodes is opened
by Guilherme Gomes (Jira)
[ https://issues.jboss.org/browse/DROOLS-3798?page=com.atlassian.jira.plugi... ]
Guilherme Gomes reassigned DROOLS-3798:
---------------------------------------
Assignee: Guilherme Gomes (was: Daniel José dos Santos)
> [DMN Designer] Included Models - Show imported nodes in the graph when a DMN with imported nodes is opened
> ----------------------------------------------------------------------------------------------------------
>
> Key: DROOLS-3798
> URL: https://issues.jboss.org/browse/DROOLS-3798
> Project: Drools
> Issue Type: Task
> Components: DMN Editor
> Reporter: Guilherme Gomes
> Assignee: Guilherme Gomes
> Priority: Major
> Labels: drools-tools
> Attachments: daniel1.dmn, daniel2.dmn
>
>
> When users open the DMN editor with an imported file+ imported nodes, they must be able to see these nodes on read-only mode.
> ---
> Assets:
> - [^daniel1.dmn]
> - [^daniel2.dmn]
> ---
> This task comprehends:
> - Read imported nodes in the "daniel2.dmn", and put them into the canvas by consuming a *mocked service class* [1] to fill the node information;
> - Create the new imported nodes in the canvas;
> - Persist imported nodes info properly in the DMN file (when users save it);
> - Keep these imported nodes on read-only mode;
> - Keep the properties panel correctly updated.
> ---
> Acceptance criteria:
> - Open the "daniel2.dmn"
> - See the imported nodes from the "daniel1.dmn"
> - Try to change the name of the node (this should not be allowed, since the node must be on read only mode)
> - Check the properties panel properties
> ---
> [1] This service class will be responsible for returning all information from a given node from another DMN file. This API will be something like this: {{ExternalDMNFileService.getNode(final String dmnElementRef)}}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 9 months
[JBoss JIRA] (WFLY-11891) Add tests that enable JPA entity class bytecode enhancement
by Gail Badner (Jira)
[ https://issues.jboss.org/browse/WFLY-11891?page=com.atlassian.jira.plugin... ]
Gail Badner commented on WFLY-11891:
------------------------------------
Test failures will be fixed by https://hibernate.atlassian.net/browse/HHH-13343.
> Add tests that enable JPA entity class bytecode enhancement
> -----------------------------------------------------------
>
> Key: WFLY-11891
> URL: https://issues.jboss.org/browse/WFLY-11891
> Project: WildFly
> Issue Type: Enhancement
> Components: JPA / Hibernate
> Affects Versions: 16.0.0.Final
> Reporter: Scott Marlow
> Assignee: Gail Badner
> Priority: Minor
> Attachments: bytebuddy.log, javassist.log
>
>
> Pick a few unit tests and add the following settings to enable [entity bytecode enhancement|http://docs.jboss.org/hibernate/orm/5.3/userguide/html_single...]:
> {code}
> <property name="hibernate.enhancer.enableDirtyTracking" value="true"/>
> <property name="hibernate.enhancer.enableLazyInitialization" value="true"/>
> <property name="hibernate.enhancer.enableAssociationManagement" value="true"/>
> {code}
> Steps to reproduce:
> * Build WildFly
> * cd testsuite/integration/basic
> * mvn clean install -Dtest=org.jboss.as.test.integration.jpa.transaction.TransactionTestCase
> * mvn clean install -Dtest=org.jboss.as.test.integration.jpa.hibernate.management.ManagementTestCase
> * mvn clean install -Dtest=org.jboss.as.test.integration.jpa.entitylistener.EntityListenersTestCase
> * mvn clean install -Dtest=org.jboss.as.test.integration.jpa.secondlevelcache.JPA2LCTestCase
> Note that the org.jboss.as.test.integration.jpa.transaction.TransactionTestCase test should pass since javassist is specified in the persistence.xml but that seems to be ignored (we still get the ByteBuddy failure).
> To workaround failures, prestart wildfly via: ./standalone.sh -Dhibernate.bytecode.provider=javassist and then run tests.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 9 months
[JBoss JIRA] (WFLY-11919) [WFLY-11846] Deployment classloader leak on EE Concurrency managed threads
by Teresa Miyar Gil (Jira)
Teresa Miyar Gil created WFLY-11919:
---------------------------------------
Summary: [WFLY-11846] Deployment classloader leak on EE Concurrency managed threads
Key: WFLY-11919
URL: https://issues.jboss.org/browse/WFLY-11919
Project: WildFly
Issue Type: Bug
Components: Concurrency Utilities
Affects Versions: 16.0.0.Final
Reporter: Teresa Miyar Gil
Assignee: Eduardo Martins
Fix For: 17.0.0.Beta1
A followup to WFLY-11678, managed threads have another deployment CL leak, which happens due to parent thread having a reference to it in its AccessControlContext. When a thread is created it inherits parent's AccessControlContext.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 9 months
[JBoss JIRA] (WFLY-11818) wildfly-16.0.0.Final: "From address" is no more used as default from in email
by Wolfgang Mayer (Jira)
[ https://issues.jboss.org/browse/WFLY-11818?page=com.atlassian.jira.plugin... ]
Wolfgang Mayer commented on WFLY-11818:
---------------------------------------
This works indeed.
Thanks for your help.
Wolfgang
> wildfly-16.0.0.Final: "From address" is no more used as default from in email
> -----------------------------------------------------------------------------
>
> Key: WFLY-11818
> URL: https://issues.jboss.org/browse/WFLY-11818
> Project: WildFly
> Issue Type: Bug
> Components: Mail
> Affects Versions: 16.0.0.Final
> Environment: mvn -v
> Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T20:41:47+02:00)
> Maven home: /apps/apache-maven-3.6.0
> Java version: 11.0.2, vendor: Oracle Corporation, runtime: /usr/java/jdk-11.0.2
> Default locale: de_DE, platform encoding: UTF-8
> OS name: "linux", version: "4.12.14-lp150.12.48-default", arch: "amd64", family: "unix"
> Reporter: Wolfgang Mayer
> Assignee: Yeray Borges
> Priority: Major
>
> As mentioned in the Help (description) of 'Mail Session' configuration:
> From: *From address that is used as default from, if not set when sending*
> Apparently this is not the case anymore in wildfly-16.0.0.Final.
> For example I made a test with quickstart-16.0/mail/.
> When omitting the line
> *message.setFrom(new InternetAddress(from));*
> Sending mail fails with:
> com.sun.mail.smtp.SMTPSendFailedException: 554-Transaction failed
> 554 Unauthorized sender address.
> I have the same issue when replacing the line above with
> message.setFrom(new InternetAddress());
> I am pretty sure that this is working in wildfly-15
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
5 years, 9 months