Filter splitter crashes on PropertyIsNull when inner expression not in
pre-filter
---------------------------------------------------------------------------------
Key: GEOT-3675
URL: https://jira.codehaus.org/browse/GEOT-3675
Project: GeoTools
Issue Type: Bug
Reporter: Niels Charlier
Assignee: Niels Charlier
PostPreProcessFilterSplittingVisitor, which is currently used to split filters
in to pre-filters and post-filters for JDBC datasources, crashes on a
PropertyIsNull unless the inner expression is assigned to the pre-filter.
For example, the following code:
FilterCapabilities caps = new FilterCapabilities();
caps.addType(PropertyIsNull.class);
visitor = new PostPreProcessFilterSplittingVisitor(caps, null, null);
Filter f2 = ff.isNull(ff.function("strConcat", ff.literal("abc"),
ff.literal("def")));
f2.accept(visitor, null);
will crash because strConcat is not in capabilities -> the functional
expression is not in the pre-filter -> visitor crashes on null filter
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel