| Summary: | [GSS] (6.2.z) Parsing of a complex constraint with an || causes a RuntimeException | ||
|---|---|---|---|
| Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | Martin Weiler <mweiler> |
| Component: | BRE | Assignee: | Mario Fusco <mfusco> |
| Status: | CLOSED EOL | QA Contact: | Tibor Zimanyi <tzimanyi> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.2.0 | CC: | etirelli, lpetrovi, mfusco, mwinkler, tzimanyi |
| Target Milestone: | CR1 | ||
| Target Release: | 6.2.2 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1300692 | Environment: | |
| Last Closed: | 2020-03-27 19:07:58 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | 1300692 | ||
| Bug Blocks: | 1309326, 1309327 | ||
|
Description
Martin Weiler
2016-01-21 13:44:48 UTC
Martin, we will fix the runtime exception, but the reported syntax is not a valid DRL syntax:
(name in (\"Alice\", \"Charlie\", \"David\"))==false
The only accepted syntaxes are
x in ("foo", "bar")
x not in ("foo", "bar")
Mario, can you please add error handling for this scenario?
This syntax is working in BRMS 6.1. In BRMS 6.2, the compiler should emit a WARN message when such an invalid syntax is used, to make users aware that their rules need to be fixed. We could then reject this syntax in BRMS 6.3 or 7, and make sure this is documented in the migration guide. WDYT? Cherry-picked to 6.3.x branch with https://github.com/droolsjbpm/drools/commit/014f29c15 Verified by running reproducer attached in the Mario's commit. |