[JBoss JIRA] (ELY-1354) Increment WildFly Elytron schema version for client configuration updates
by Darran Lofthouse (JIRA)
[ https://issues.jboss.org/browse/ELY-1354?page=com.atlassian.jira.plugin.s... ]
Darran Lofthouse updated ELY-1354:
----------------------------------
Summary: Increment WildFly Elytron schema version for client configuration updates (was: Increment WildFly Elytron schema version)
> Increment WildFly Elytron schema version for client configuration updates
> -------------------------------------------------------------------------
>
> Key: ELY-1354
> URL: https://issues.jboss.org/browse/ELY-1354
> Project: WildFly Elytron
> Issue Type: Task
> Components: Authentication Client
> Reporter: Darran Lofthouse
> Assignee: Darran Lofthouse
> Fix For: 1.2.0.Beta3
>
>
> At the same time we need to review how we handle supporting multiple versions.
> On one hand we can look at making our parser fairly permissive so if we are just adding it can support both old and new, the biggest advantage here is we can minimise code duplication.
> The down side however is in the future it becomes very difficult to reverse and remove support for older schema.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 10 months
[JBoss JIRA] (DROOLS-1724) DRL compilation error on a generic type property
by Mario Fusco (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1724?page=com.atlassian.jira.plugi... ]
Mario Fusco updated DROOLS-1724:
--------------------------------
Sprint: 2017 Week 36-37
> DRL compilation error on a generic type property
> ------------------------------------------------
>
> Key: DROOLS-1724
> URL: https://issues.jboss.org/browse/DROOLS-1724
> Project: Drools
> Issue Type: Bug
> Affects Versions: 6.5.0.Final
> Environment: drools 6.5.0.Final / java 1.8.0_131
> Reporter: Ryo Murai
> Assignee: Mario Fusco
> Fix For: 7.3.1.Final
>
>
> I got a DRL compilation error on accessing through a generic type property. Minimized object definition is below.
> {code:borderStyle=solid}
> public interface OrderLine<T extends Product> {
> T getProduct();
> }
> public interface Product {
> String getId();
> String getCategory();
> }
> // and I have concrete classes, ex. Book, BookOrderLine<Book>, DVD, DVDOrderLine<DVD>, ... etc
> {code}
> DRL(snippet) is here
> {code:borderStyle=solid}
> when
> $orderLine: OrderLine()
> // compilation failed
> Product(
> id == $orderLine.product.id || category == $orderLine.product.category
> ) from discountProducts
> {code}
> This causes below exception.
> {panel}
> java.lang.RuntimeException: [Message [id=1, kieBase=defaultKieBase, level=ERROR, path=rules/checkorder-not-compiled.drl, line=15, column=0 text=Unable to Analyse Expression id == $orderLine.product.id || category == $orderLine.product.category:
> [Error: unable to resolve method using strict-mode: java.lang.Object.category()]
> [Near : {... Line.product.id || category == $orderLine.product.category ....}]
> ^
> [Line: 15, Column: 2]]]
> {panel}
> This is weird because it won't occur when the restriction has single condition like below. Drools could analyze this expression.
> {code:borderStyle=solid}
> when
> $orderLine: OrderLine()
> // this is compiled, even if `Product(id == $orderLine.product.id)`
> Product(
> category == $orderLine.product.category
> ) from discountProducts
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 10 months
[JBoss JIRA] (DROOLS-1724) DRL compilation error on a generic type property
by Mario Fusco (JIRA)
[ https://issues.jboss.org/browse/DROOLS-1724?page=com.atlassian.jira.plugi... ]
Mario Fusco resolved DROOLS-1724.
---------------------------------
Fix Version/s: 7.3.1.Final
Resolution: Done
Fixed in mvel by https://github.com/mvel/mvel/commit/1bcbe976b8e0fcac5cda277b0f604d769a3d2671
> DRL compilation error on a generic type property
> ------------------------------------------------
>
> Key: DROOLS-1724
> URL: https://issues.jboss.org/browse/DROOLS-1724
> Project: Drools
> Issue Type: Bug
> Affects Versions: 6.5.0.Final
> Environment: drools 6.5.0.Final / java 1.8.0_131
> Reporter: Ryo Murai
> Assignee: Mario Fusco
> Fix For: 7.3.1.Final
>
>
> I got a DRL compilation error on accessing through a generic type property. Minimized object definition is below.
> {code:borderStyle=solid}
> public interface OrderLine<T extends Product> {
> T getProduct();
> }
> public interface Product {
> String getId();
> String getCategory();
> }
> // and I have concrete classes, ex. Book, BookOrderLine<Book>, DVD, DVDOrderLine<DVD>, ... etc
> {code}
> DRL(snippet) is here
> {code:borderStyle=solid}
> when
> $orderLine: OrderLine()
> // compilation failed
> Product(
> id == $orderLine.product.id || category == $orderLine.product.category
> ) from discountProducts
> {code}
> This causes below exception.
> {panel}
> java.lang.RuntimeException: [Message [id=1, kieBase=defaultKieBase, level=ERROR, path=rules/checkorder-not-compiled.drl, line=15, column=0 text=Unable to Analyse Expression id == $orderLine.product.id || category == $orderLine.product.category:
> [Error: unable to resolve method using strict-mode: java.lang.Object.category()]
> [Near : {... Line.product.id || category == $orderLine.product.category ....}]
> ^
> [Line: 15, Column: 2]]]
> {panel}
> This is weird because it won't occur when the restriction has single condition like below. Drools could analyze this expression.
> {code:borderStyle=solid}
> when
> $orderLine: OrderLine()
> // this is compiled, even if `Product(id == $orderLine.product.id)`
> Product(
> category == $orderLine.product.category
> ) from discountProducts
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 10 months
[JBoss JIRA] (WFCORE-3256) Filters.filterToFilterSpec fails if ANY or ALL include legal undefined fields
by James Perkins (JIRA)
[ https://issues.jboss.org/browse/WFCORE-3256?page=com.atlassian.jira.plugi... ]
James Perkins commented on WFCORE-3256:
---------------------------------------
That is correct that the {{filter}} is the older attribute and {{filter-spec}} should be used. I'll have a look at this though.
> Filters.filterToFilterSpec fails if ANY or ALL include legal undefined fields
> -----------------------------------------------------------------------------
>
> Key: WFCORE-3256
> URL: https://issues.jboss.org/browse/WFCORE-3256
> Project: WildFly Core
> Issue Type: Bug
> Components: Logging
> Reporter: Brian Stansberry
> Assignee: James Perkins
> Priority: Minor
>
> Say you have a filter value like this:
> {code}
> {
> "any" => {
> "match" => ".*",
> "change-level" => undefined,
> "level" => undefined,
> "level-range" => undefined,
> "not" => undefined
> },
> "all" => undefined,
> "change-level" => undefined,
> "level" => undefined,
> "level-range" => undefined,
> "not" => undefined
> }
> {code}
> Writing that will fail with "WFLYLOG0025: Filter ("change-level" => undefined) is invalid".
> This is because filterToFilterSpec will process the "any" node by iterating over its fields and recursing, and as soon as it gets to one of the 'undefined' ones it will fail. But the overall structure should be fine.
> I hit this when testing a WFCORE-3255 fix, one that had the effect of adding "change-level" => undefined, etc to the params used by LoggingOperationsSubsystemTestCase.testLegacyFilters.
> I can probably work around this easily enough and IIRC this 'filter' stuff is real old, so this is no big deal.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
8 years, 10 months