[JBoss JIRA] (WFLY-13216) /openapi throws 406 when Accept header is sufficiently complex
by Paul Ferraro (Jira)
Paul Ferraro created WFLY-13216:
-----------------------------------
Summary: /openapi throws 406 when Accept header is sufficiently complex
Key: WFLY-13216
URL: https://issues.redhat.com/browse/WFLY-13216
Project: WildFly
Issue Type: Bug
Components: MP OpenAPI
Affects Versions: 19.0.0.Beta3
Reporter: Paul Ferraro
Assignee: Paul Ferraro
When accessing /openapi endpoint via Chrome, the following Accept header is sent:
Accept : text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
This should return a yaml document, as */* is acceptable, though lower priority than, say, text/html.
This currently returns a 406 error.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 4 months
[JBoss JIRA] (DROOLS-1741) Using a function in nested objects
by Mario Fusco (Jira)
[ https://issues.redhat.com/browse/DROOLS-1741?page=com.atlassian.jira.plug... ]
Mario Fusco resolved DROOLS-1741.
---------------------------------
Resolution: Won't Fix
If Drools would allow a syntax like
{code}
ObjectA( objectB. ( (someFunction(someVariable)) == 0 ) )
{code}
it would be not only highly confusing but even ambiguous. It is much simpler and clearer to use a more Java-like syntax here like in
{code}
ObjectA( someFunction(objectB.someVariable) == 0 ) )
{code}
> Using a function in nested objects
> ----------------------------------
>
> Key: DROOLS-1741
> URL: https://issues.redhat.com/browse/DROOLS-1741
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.5.0.Final
> Environment: Drools 6.5.0.Final
> JDK 1.8
> Reporter: R D
> Assignee: Mario Fusco
> Priority: Minor
> Attachments: Compilation_error.PNG, Compilation_error.PNG
>
>
> I am working with a project with nested objects.
> I have a rule in which I need to make use of a function. If I use this function on a variable in a nested object it does not work (I get a compilation error):
> Using the nested object accessor approach (compilation error "Unable to Analyse Expression"):
> ObjectA( objectB. ( (someFunction(someVariable)) == 0 ) )
> EDIT: The same compilation error occurs as well when just using a more complex operation on variables in nested objects as well (updated project on GitHub):
> ObjectA( objectB. ( (someVariable == 0 || someVariable == 1 ) || (someVariable > -1 || someVariable < 2 )) )
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 4 months
[JBoss JIRA] (DROOLS-1741) Using a function in nested objects
by Mario Fusco (Jira)
[ https://issues.redhat.com/browse/DROOLS-1741?page=com.atlassian.jira.plug... ]
Mario Fusco updated DROOLS-1741:
--------------------------------
Sprint: 2020 Week 10-12 (from Mar 2)
> Using a function in nested objects
> ----------------------------------
>
> Key: DROOLS-1741
> URL: https://issues.redhat.com/browse/DROOLS-1741
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.5.0.Final
> Environment: Drools 6.5.0.Final
> JDK 1.8
> Reporter: R D
> Assignee: Mario Fusco
> Priority: Minor
> Attachments: Compilation_error.PNG, Compilation_error.PNG
>
>
> I am working with a project with nested objects.
> I have a rule in which I need to make use of a function. If I use this function on a variable in a nested object it does not work (I get a compilation error):
> Using the nested object accessor approach (compilation error "Unable to Analyse Expression"):
> ObjectA( objectB. ( (someFunction(someVariable)) == 0 ) )
> EDIT: The same compilation error occurs as well when just using a more complex operation on variables in nested objects as well (updated project on GitHub):
> ObjectA( objectB. ( (someVariable == 0 || someVariable == 1 ) || (someVariable > -1 || someVariable < 2 )) )
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 4 months
[JBoss JIRA] (DROOLS-5135) Drools Setup › Exception Handling in Drools Rule Condition
by Bishnu Shankar Pandey (Jira)
[ https://issues.redhat.com/browse/DROOLS-5135?page=com.atlassian.jira.plug... ]
Bishnu Shankar Pandey reopened DROOLS-5135:
-------------------------------------------
> Drools Setup › Exception Handling in Drools Rule Condition
> -----------------------------------------------------------
>
> Key: DROOLS-5135
> URL: https://issues.redhat.com/browse/DROOLS-5135
> Project: Drools
> Issue Type: Bug
> Components: Guided Rule Editor
> Affects Versions: 7.15.0.Final
> Reporter: Bishnu Shankar Pandey
> Assignee: Mario Fusco
> Priority: Major
>
> How can we do rule wise exception handling in the drools rule condition? My scenario is how to handle scenarios when the schema of an event changes.
> For example, let's say Initially I have an event that has 5 members namely name,num1,num2,num3,num4. I started creating rules for the event and the rule engine is running for some time. After that let's assume there is a scenario in which one of the class members (say num4) is removed from the event because of some reason. Now what I can do now is to change the Event class, but all the rules associated with that member will give me exceptions. The exceptions will also affect other rules which can run with the current data. Is there any way to handle exception in rule condition for specific rule and restrict it to disturb the independent rules.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 4 months
[JBoss JIRA] (DROOLS-5135) Drools Setup › Exception Handling in Drools Rule Condition
by Bishnu Shankar Pandey (Jira)
[ https://issues.redhat.com/browse/DROOLS-5135?page=com.atlassian.jira.plug... ]
Bishnu Shankar Pandey commented on DROOLS-5135:
-----------------------------------------------
Thank you so much for the response. I am reopening this issue by adding my point. Let's say I have a map object inside Foo class and I have configured rule on that map object that was working fine. Because of some change in the schema of the event one of the map column not coming with the data. Drools will through error on the rules which is being configured on that column. Throwing error will affect other rules also. Is there any way to restrict one rule to affect the execution of other rule because there is an error/exception in that rule?
> Drools Setup › Exception Handling in Drools Rule Condition
> -----------------------------------------------------------
>
> Key: DROOLS-5135
> URL: https://issues.redhat.com/browse/DROOLS-5135
> Project: Drools
> Issue Type: Bug
> Components: Guided Rule Editor
> Affects Versions: 7.15.0.Final
> Reporter: Bishnu Shankar Pandey
> Assignee: Mario Fusco
> Priority: Major
>
> How can we do rule wise exception handling in the drools rule condition? My scenario is how to handle scenarios when the schema of an event changes.
> For example, let's say Initially I have an event that has 5 members namely name,num1,num2,num3,num4. I started creating rules for the event and the rule engine is running for some time. After that let's assume there is a scenario in which one of the class members (say num4) is removed from the event because of some reason. Now what I can do now is to change the Event class, but all the rules associated with that member will give me exceptions. The exceptions will also affect other rules which can run with the current data. Is there any way to handle exception in rule condition for specific rule and restrict it to disturb the independent rules.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 4 months
[JBoss JIRA] (DROOLS-2729) KieScanner tries to read test dependencies
by Mario Fusco (Jira)
[ https://issues.redhat.com/browse/DROOLS-2729?page=com.atlassian.jira.plug... ]
Mario Fusco resolved DROOLS-2729.
---------------------------------
Resolution: Done
Fixed by https://github.com/kiegroup/drools/commit/70e5b2be5db1b610db41e2cecc9b0ea...
> KieScanner tries to read test dependencies
> ------------------------------------------
>
> Key: DROOLS-2729
> URL: https://issues.redhat.com/browse/DROOLS-2729
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.8.0.Final
> Reporter: Ales Dolecek
> Assignee: Mario Fusco
> Priority: Major
>
> Method KieRepositoryScannerImpl#indexArtifacts first reads ALL dependencies and then tries to exclude those with scope test/provided/system. This is wrong since the nested dependencies might have different scope. Conseder this case:
> A -> depends on B (with scope test)
> B -> depends on C (with scope compile)
> Asking for allDependencies will yield following descriptors:
> A (compile scope)
> B (test scope)
> C (compile scope)
> B gets discarded, but C remains and scanner will try to resolve it and add to class loader.
> Instead of fitering the results of ArtifactResolver#getAllDependencies() (without parameters) you should use overloaded version of this method that accepts dependency filter.
> I do not create rules via GUI, but have them in separate Maven project. This projects contains tests cases that check if the rules are OK. The tests create the knowlege base from filesystem and require drools-decisiontables in order to execute.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 4 months
[JBoss JIRA] (DROOLS-5135) Drools Setup › Exception Handling in Drools Rule Condition
by Mario Fusco (Jira)
[ https://issues.redhat.com/browse/DROOLS-5135?page=com.atlassian.jira.plug... ]
Mario Fusco resolved DROOLS-5135.
---------------------------------
Resolution: Rejected
Drools DRL is a strongly typed language.
As an exercise, let's try to do a similar exercise on what you're suggesting in Java. What you're asking is the equivalent of "I have a class Foo with, among other things, a method bar() that is called by other classes. I remove the method bar() and I would like my program, at least in the classes not using that method bar(), to work normally".
In my opinion this requirement doesn't make much sense and, in the same way as the whole Java program cannot be compiled if there are still classes referencing that method bar(), so Drools cannot compile the whole rules base and generate its internal datastructures, necessary to evaluate those rules if any of them is malformed or references not existing types or properties.
> Drools Setup › Exception Handling in Drools Rule Condition
> -----------------------------------------------------------
>
> Key: DROOLS-5135
> URL: https://issues.redhat.com/browse/DROOLS-5135
> Project: Drools
> Issue Type: Bug
> Components: Guided Rule Editor
> Affects Versions: 7.15.0.Final
> Reporter: Bishnu Shankar Pandey
> Assignee: Mario Fusco
> Priority: Major
>
> How can we do rule wise exception handling in the drools rule condition? My scenario is how to handle scenarios when the schema of an event changes.
> For example, let's say Initially I have an event that has 5 members namely name,num1,num2,num3,num4. I started creating rules for the event and the rule engine is running for some time. After that let's assume there is a scenario in which one of the class members (say num4) is removed from the event because of some reason. Now what I can do now is to change the Event class, but all the rules associated with that member will give me exceptions. The exceptions will also affect other rules which can run with the current data. Is there any way to handle exception in rule condition for specific rule and restrict it to disturb the independent rules.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 4 months
[JBoss JIRA] (DROOLS-5135) Drools Setup › Exception Handling in Drools Rule Condition
by Mario Fusco (Jira)
[ https://issues.redhat.com/browse/DROOLS-5135?page=com.atlassian.jira.plug... ]
Mario Fusco updated DROOLS-5135:
--------------------------------
Sprint: 2020 Week 10-12 (from Mar 2)
> Drools Setup › Exception Handling in Drools Rule Condition
> -----------------------------------------------------------
>
> Key: DROOLS-5135
> URL: https://issues.redhat.com/browse/DROOLS-5135
> Project: Drools
> Issue Type: Bug
> Components: Guided Rule Editor
> Affects Versions: 7.15.0.Final
> Reporter: Bishnu Shankar Pandey
> Assignee: Mario Fusco
> Priority: Major
>
> How can we do rule wise exception handling in the drools rule condition? My scenario is how to handle scenarios when the schema of an event changes.
> For example, let's say Initially I have an event that has 5 members namely name,num1,num2,num3,num4. I started creating rules for the event and the rule engine is running for some time. After that let's assume there is a scenario in which one of the class members (say num4) is removed from the event because of some reason. Now what I can do now is to change the Event class, but all the rules associated with that member will give me exceptions. The exceptions will also affect other rules which can run with the current data. Is there any way to handle exception in rule condition for specific rule and restrict it to disturb the independent rules.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 4 months