[JBoss JIRA] (DROOLS-1940) [DMN Editor] Dynamic Form "read only" not working
by Michael Anstis (Jira)
[ https://issues.jboss.org/browse/DROOLS-1940?page=com.atlassian.jira.plugi... ]
Michael Anstis resolved DROOLS-1940.
------------------------------------
Resolution: Out of Date
Properties can be made read-only using the {{@FormField(readonly = true)}} annotation.
> [DMN Editor] Dynamic Form "read only" not working
> -------------------------------------------------
>
> Key: DROOLS-1940
> URL: https://issues.jboss.org/browse/DROOLS-1940
> Project: Drools
> Issue Type: Bug
> Components: DMN Editor
> Reporter: Michael Anstis
> Assignee: Pere Fernández Pérez
> Priority: Major
> Labels: drools-tools
>
> I don't know whether it's related to my problems with a object hierarchy and {{@FormField}} re-use; but fields annotated {{@FieldReadOnly}} do not appear as read-only in the "Properties Panel". For example:-
> {code}
> @FieldDefinition(labelMode = LabelMode.OVERRIDE_I18N_KEY)
> public class Id implements DMNProperty {
> ...
> @ReadOnly
> @FieldReadOnly
> public static final Boolean readOnly = true;
> ...
> }
> public abstract class DMNModelInstrumentedBase implements DMNDefinition {
>
> //No @FormFields etc
>
> }
>
> public abstract class DMNElement extends DMNModelInstrumentedBase {
>
> @Property
> @FormField
> protected Id id;
> ....
> }
>
> public abstract class NamedElement extends DMNElement {
> ....
> }
>
> @FormDefinition(policy = FieldPolicy.ONLY_MARKED)
> public class InformationItem extends NamedElement implements DMNPropertySet {
> ....
> }
> {code}
> The "Propeties" widget for "Id" can still be edited; although changes are not persisted (i.e. if I change the "Id" to "xyz" and then click on a different node and back to the one I changed the "Id" property is not "xyz"). I would however expected the {{TextBox}} to have been read-only and the value not editable.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 8 months
[JBoss JIRA] (DROOLS-3328) PhreakAsyncSendNode triggers service discovery even when it's not used
by Edoardo Vacchi (Jira)
Edoardo Vacchi created DROOLS-3328:
--------------------------------------
Summary: PhreakAsyncSendNode triggers service discovery even when it's not used
Key: DROOLS-3328
URL: https://issues.jboss.org/browse/DROOLS-3328
Project: Drools
Issue Type: Enhancement
Reporter: Edoardo Vacchi
Assignee: Edoardo Vacchi
I am investigating ways to startup a stripped down version of the rule engine.
in 7.8.0 the following snippet did _not_ trigger service discovery :
{code}
CanonicalKiePackages packages = new MyKiePackagesBuilder(model, ProjectClassLoader.createProjectClassLoader()).build();
InternalKnowledgeBase kBase = new KnowledgeBaseImpl("defaultname", null);
kBase.addPackages(packages.getKiePackages());
kieSession = kBase.newKieSession();
{code}
this is because no call to {{ExecutorProviderFactory.getExecutorProvider()}} occurs anywhere. However in a recent release, {{PhreakAsyncSendNode}} invokes this method, while initializing a static field
{code}
private static final Executor executor = ExecutorProviderFactory.getExecutorProvider().getExecutor();
{code}
This triggers a *full service discovery* which loads a bunch of other unrelated services.
Solution: avoid service discovery in that class, or delegate to a method (the service utility caches that field anyway, so it's not necessary to set a static field there)
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 8 months
[JBoss JIRA] (WFLY-11357) Tests RemoteLocalCall*TestCase fail with security manager
by Amos Feng (Jira)
[ https://issues.jboss.org/browse/WFLY-11357?page=com.atlassian.jira.plugin... ]
Amos Feng commented on WFLY-11357:
----------------------------------
[~dmlloyd] can you take a look at this issue ? is it possible related to the wildfly-ejb-client and need to add a privileged block when invoking RemoteTransactionContext.outflowTransaction ?
> Tests RemoteLocalCall*TestCase fail with security manager
> ---------------------------------------------------------
>
> Key: WFLY-11357
> URL: https://issues.jboss.org/browse/WFLY-11357
> Project: WildFly
> Issue Type: Bug
> Components: EJB, Test Suite, Transactions
> Affects Versions: 15.0.0.Beta1
> Reporter: Martin Choma
> Assignee: Amos Feng
> Priority: Major
> Labels: security-manager
>
> {noformat}
> org.jboss.as.test.multinode.remotecall (2)
> RemoteLocalCallProfileTestCase.testStatelessRemoteFromRemote
> RemoteLocalCallTestCase.testStatelessRemoteFromRemote
> {noformat}
> {noformat}
> Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("java.io.FilePermission" "/store/work/tc-work/8edf911abfd02209/testsuite/integration/multinode/target/jbossas-multinode-client/standalone/data/ejb-xa-recovery" "write")" in code source "(vfs:/content/remotelocalcall-test-client.jar <no signer certificates>)" of "ModuleClassLoader for Module "deployment.remotelocalcall-test-client.jar" from Service Module Loader")
> at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:294)
> at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:191)
> at java.lang.SecurityManager.checkWrite(SecurityManager.java:979)
> at org.wildfly.security.manager.WildFlySecurityManager.checkWrite(WildFlySecurityManager.java:377)
> at java.io.File.mkdir(File.java:1311)
> at org.wildfly.transaction.client.provider.jboss.FileSystemXAResourceRegistry$XAResourceRegistryFile.<init>(FileSystemXAResourceRegistry.java:207)
> at org.wildfly.transaction.client.provider.jboss.FileSystemXAResourceRegistry.getXAResourceRegistryFile(FileSystemXAResourceRegistry.java:121)
> at org.wildfly.transaction.client.provider.jboss.JBossLocalTransactionProvider.getXAResourceRegistry(JBossLocalTransactionProvider.java:160)
> at org.wildfly.transaction.client.XAOutflowedResources.getOrEnlist(XAOutflowedResources.java:57)
> at org.wildfly.transaction.client.RemoteTransactionContext.outflowTransaction(RemoteTransactionContext.java:222)
> at org.jboss.ejb.protocol.remote.EJBClientChannel.writeTransaction(EJBClientChannel.java:567)
> at org.jboss.ejb.protocol.remote.EJBClientChannel.openSession(EJBClientChannel.java:623)
> at org.jboss.ejb.protocol.remote.RemoteEJBReceiver.createSession(RemoteEJBReceiver.java:149)
> at org.jboss.ejb.client.EJBSessionCreationInvocationContext.proceed(EJBSessionCreationInvocationContext.java:63)
> at org.jboss.ejb.protocol.remote.RemotingEJBClientInterceptor.handleSessionCreation(RemotingEJBClientInterceptor.java:66)
> at org.jboss.ejb.client.EJBSessionCreationInvocationContext.proceed(EJBSessionCreationInvocationContext.java:70)
> at org.jboss.ejb.client.TransactionPostDiscoveryInterceptor.handleSessionCreation(TransactionPostDiscoveryInterceptor.java:89)
> at org.jboss.ejb.client.EJBSessionCreationInvocationContext.proceed(EJBSessionCreationInvocationContext.java:70)
> at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.handleSessionCreation(DiscoveryEJBClientInterceptor.java:150)
> at org.jboss.ejb.client.EJBSessionCreationInvocationContext.proceed(EJBSessionCreationInvocationContext.java:70)
> at org.jboss.ejb.client.NamingEJBClientInterceptor.handleSessionCreation(NamingEJBClientInterceptor.java:93)
> at org.jboss.ejb.client.EJBSessionCreationInvocationContext.proceed(EJBSessionCreationInvocationContext.java:70)
> at org.jboss.ejb.client.TransactionInterceptor.handleSessionCreation(TransactionInterceptor.java:100)
> at org.jboss.ejb.client.EJBSessionCreationInvocationContext.proceed(EJBSessionCreationInvocationContext.java:70)
> at org.jboss.ejb.client.EJBClientContext.createSession(EJBClientContext.java:834)
> at org.jboss.ejb.client.EJBClient.createSessionProxy(EJBClient.java:198)
> at org.jboss.ejb.client.EJBRootContext.lookupNative(EJBRootContext.java:157)
> ... 221 more
> {noformat}
> [1] https://ci.wildfly.org/viewLog.html?buildId=128138&buildTypeId=WF_MasterS...
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
7 years, 8 months