[JBoss JIRA] (WFWIP-55) Default value defined on injection point of List and Set fields is not taken into account
by Petr Kremensky (JIRA)
[ https://issues.jboss.org/browse/WFWIP-55?page=com.atlassian.jira.plugin.s... ]
Petr Kremensky updated WFWIP-55:
--------------------------------
Environment:
{noformat}
git@github.com:jmesnil/wildfly.git:WFLY-10522_microprofile-config-smallrye_extension
{noformat}
> Default value defined on injection point of List and Set fields is not taken into account
> -----------------------------------------------------------------------------------------
>
> Key: WFWIP-55
> URL: https://issues.jboss.org/browse/WFWIP-55
> Project: WildFly WIP
> Issue Type: Bug
> Components: MP Config
> Environment: {noformat}
> git@github.com:jmesnil/wildfly.git:WFLY-10522_microprofile-config-smallrye_extension
> {noformat}
> Reporter: Petr Kremensky
> Assignee: Jeff Mesnil
>
> Assume we define a following injection points:
> {code:java}
> @Inject
> @ConfigProperty(name = "myPets", defaultValue = "horse,monkey")
> private String[] myArrayPets;
> @Inject
> @ConfigProperty(name = "myPets", defaultValue = "cat,lama")
> private List<String> myListPets;
> @Inject
> @ConfigProperty(name = "myPets", defaultValue = "dog,mouse")
> private Set<String> mySetPets;
> {code}
> Passing a -DmyPets=snake,ox property work as expected:
> {noformat}
> myArrayPets : [snake,ox]
> myListPets : [snake,ox]
> mySetPets : [snake,ox]
> {noformat}
> but trying to use the defults I get:
> {noformat}
> myArrayPets : [horse,monkey]
> myListPets : <empty list>
> mySetPets : <empty set>
> {noformat}
> defaults are not applied to List and Set fields, no exception is thrown.
> Another inconsistency between Array and Set+List I run into is behaviour on missing property (myPets is not set):
> *Array*
> {code:java}
> @Inject
> @ConfigProperty(name = "myPets")
> private String[] myArrayPets;
> >>>
> 08:34:05,178 ERROR [stderr] (MSC service thread 1-2) org.jboss.weld.exceptions.DeploymentException: Error while validating Configuration
> 08:34:05,178 ERROR [stderr] (MSC service thread 1-2) No Config Value exists for myPets
> myArrayPets : [org.eclipse.microprofile.config.configproperty.unconfigureddvalue]
> {code}
> *Set, List*
> {code:java}
> @Inject
> @ConfigProperty(name = "myPets")
> private List<String> myListPets;
> @Inject
> @ConfigProperty(name = "myPets")
> private Set<String> mySetPets;
> >>>
> no errors
> myListPets : <empty list>
> mySetPets : <empty set>
> {code}
> https://microprofile.io/project/eclipse/microprofile-config/spec/src/main...
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years
[JBoss JIRA] (WFWIP-58) Improve CLI code completion for /subsystem=microprofile-config-smallrye/ configuration attribute values
by Petr Kremensky (JIRA)
Petr Kremensky created WFWIP-58:
-----------------------------------
Summary: Improve CLI code completion for /subsystem=microprofile-config-smallrye/ configuration attribute values
Key: WFWIP-58
URL: https://issues.jboss.org/browse/WFWIP-58
Project: WildFly WIP
Issue Type: Bug
Components: CLI, MP Config
Environment: {noformat}
git@github.com:jmesnil/wildfly.git:WFLY-10522_microprofile-config-smallrye_extension
{noformat}
Reporter: Petr Kremensky
Assignee: Jeff Mesnil
CLI should offer some help with configuration {{/subsystem=microprofile-config-smallrye/}} resource values.
e.g.
{noformat}
[standalone@localhost:9990 /] /subsystem=microprofile-config-smallrye/config-source=test:add(dir=/<TAB>
{noformat}
should help users to browse the File System. Not sure what can be achieved with the rest of the resources.
I consider this an UX issue, that's why I prefer to use bug instead of Enhancement as Issue type.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years
[JBoss JIRA] (WFWIP-57) MalformedInputException is thrown in case config-source dir contains binaries
by Petr Kremensky (JIRA)
[ https://issues.jboss.org/browse/WFWIP-57?page=com.atlassian.jira.plugin.s... ]
Petr Kremensky updated WFWIP-57:
--------------------------------
Environment:
{noformat}
git@github.com:jmesnil/wildfly.git:WFLY-10522_microprofile-config-smallrye_extension
{noformat}
> MalformedInputException is thrown in case config-source dir contains binaries
> -----------------------------------------------------------------------------
>
> Key: WFWIP-57
> URL: https://issues.jboss.org/browse/WFWIP-57
> Project: WildFly WIP
> Issue Type: Bug
> Components: MP Config
> Environment: {noformat}
> git@github.com:jmesnil/wildfly.git:WFLY-10522_microprofile-config-smallrye_extension
> {noformat}
> Reporter: Petr Kremensky
> Assignee: Jeff Mesnil
>
> Management operation for adding a config-source dir fails with MalformedInputException in case that the dir contains some binaries.
> *reproduce*
> {noformat}
> TEST_DIR=/tmp/test_dir
> mkdir -p $TEST_DIR
> head -c 1K </dev/urandom > ${TEST_DIR}/random.data
> echo 'value' > ${TEST_DIR}/my.property
> sh wildfly-14.0.0.Beta1-SNAPSHOT/bin/standalone.sh &
> sh wildfly-14.0.0.Beta1-SNAPSHOT/bin/jboss-cli.sh -c "/subsystem=microprofile-config-smallrye/config-source=config:add(dir=${TEST_DIR})"
> {noformat}
> *expected*
> Binaries and e.g. corrupted files (log?) are ignored.
> *actual*
> {noformat}
> 12:53:59,083 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("add") failed - address: ([
> ("subsystem" => "microprofile-config-smallrye"),
> ("config-source" => "asd")
> ]): java.io.UncheckedIOException: java.nio.charset.MalformedInputException: Input length = 1
> at java.io.BufferedReader$1.hasNext(BufferedReader.java:574)
> at java.util.Iterator.forEachRemaining(Iterator.java:115)
> at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
> at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
> at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
> at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
> at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
> at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
> at io.smallrye.config.DirConfigSource.readContent(DirConfigSource.java:72)
> at io.smallrye.config.DirConfigSource.scan(DirConfigSource.java:60)
> at io.smallrye.config.DirConfigSource.<init>(DirConfigSource.java:46)
> at org.wildfly.extension.microprofile.config.smallrye.ConfigSourceDefinition$1.performRuntime(ConfigSourceDefinition.java:120)
> ...
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years
[JBoss JIRA] (WFWIP-57) MalformedInputException is thrown in case config-source dir contains binaries
by Petr Kremensky (JIRA)
Petr Kremensky created WFWIP-57:
-----------------------------------
Summary: MalformedInputException is thrown in case config-source dir contains binaries
Key: WFWIP-57
URL: https://issues.jboss.org/browse/WFWIP-57
Project: WildFly WIP
Issue Type: Bug
Components: MP Config
Reporter: Petr Kremensky
Assignee: Jeff Mesnil
Management operation for adding a config-source dir fails with MalformedInputException in case that the dir contains some binaries.
*reproduce*
{noformat}
TEST_DIR=/tmp/test_dir
mkdir -p $TEST_DIR
head -c 1K </dev/urandom > ${TEST_DIR}/random.data
echo 'value' > ${TEST_DIR}/my.property
sh wildfly-14.0.0.Beta1-SNAPSHOT/bin/standalone.sh &
sh wildfly-14.0.0.Beta1-SNAPSHOT/bin/jboss-cli.sh -c "/subsystem=microprofile-config-smallrye/config-source=config:add(dir=${TEST_DIR})"
{noformat}
*expected*
Binaries and e.g. corrupted files (log?) are ignored.
*actual*
{noformat}
12:53:59,083 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("add") failed - address: ([
("subsystem" => "microprofile-config-smallrye"),
("config-source" => "asd")
]): java.io.UncheckedIOException: java.nio.charset.MalformedInputException: Input length = 1
at java.io.BufferedReader$1.hasNext(BufferedReader.java:574)
at java.util.Iterator.forEachRemaining(Iterator.java:115)
at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at io.smallrye.config.DirConfigSource.readContent(DirConfigSource.java:72)
at io.smallrye.config.DirConfigSource.scan(DirConfigSource.java:60)
at io.smallrye.config.DirConfigSource.<init>(DirConfigSource.java:46)
at org.wildfly.extension.microprofile.config.smallrye.ConfigSourceDefinition$1.performRuntime(ConfigSourceDefinition.java:120)
...
{noformat}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years
[JBoss JIRA] (DROOLS-2744) [DMN Designer] Global diagram properties
by Michael Anstis (JIRA)
[ https://issues.jboss.org/browse/DROOLS-2744?page=com.atlassian.jira.plugi... ]
Michael Anstis commented on DROOLS-2744:
----------------------------------------
Hi [~jomarko] I don't think "Diagram" properties are considered "global" by Stunner, so I think assuming changing them affects child nodes is incorrect.
To be honest I was expecting changing them to affect the background of the diagram but doing so seemed to have no affect either.
[~roger600] Can you please explain the operation of a diagrams' properties?
> [DMN Designer] Global diagram properties
> ----------------------------------------
>
> Key: DROOLS-2744
> URL: https://issues.jboss.org/browse/DROOLS-2744
> Project: Drools
> Issue Type: Bug
> Components: DMN Editor
> Affects Versions: 7.9.0.Final
> Reporter: Jozef Marko
> Assignee: Michael Anstis
> Priority: Minor
> Labels: drools-tools
>
> The global diagram properties for DMN diagram contains sections settings for:
> - dimensions
> - backround
> - font
> However change of any of them (globally, for the whole diagram) doesn't seem to affect particular nodes somehow. We should hide these settings or implement the logic that would affect all nodes in diagram by change on this place.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years
[JBoss JIRA] (WFLY-10702) Cover possible error when host controllers can not connect to domain after creating a rollout plan and restarting the master host controller
by Jiri Ondrusek (JIRA)
[ https://issues.jboss.org/browse/WFLY-10702?page=com.atlassian.jira.plugin... ]
Jiri Ondrusek updated WFLY-10702:
---------------------------------
Steps to Reproduce:
Original problem doesn't happen on wildfly - original problem could be simulated on 6.4.x (<6.4.21):
Create a domain with master and slave, create a rollout plan and restart like this:
rollout-plan add --name=my-plan --content={rollout groupa^groupb}
/host=my-dc:reload
was:See https://issues.jboss.org/browse/JBEAP-15066 for more details (original problem doesn't happen on wildfly)
> Cover possible error when host controllers can not connect to domain after creating a rollout plan and restarting the master host controller
> --------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: WFLY-10702
> URL: https://issues.jboss.org/browse/WFLY-10702
> Project: WildFly
> Issue Type: Bug
> Reporter: Jiri Ondrusek
> Assignee: Jiri Ondrusek
>
> On downstream (6.4.x) there is an error https://bugzilla.redhat.com/show_bug.cgi?id=1599625 about error during restart of master host with rollout plan. This problem doesn't happen on master, but both fix and test should to be created also for wildfly (to satisfy upstream and prevent similar problems to happen - by introducing a test).
> Original problem:
> Creating a rollout plan and restarting the dc host prevent the other hosts to connect to the master again. The slave hc is unable to connect giving the error JBAS014687: Resource is immutable, the dc shows many errors like:
> JBAS012119: cancelled task by interrupting thread Thread[Host Controller Service Threads - 117,5,Host Controller Service Threads]
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
8 years