From: <ji...@co...> - 2007-09-24 17:12:51
|
WFSFeatureSource.getFeatures() always returns empty set with ALL query ---------------------------------------------------------------------- Key: GEOT-1499 URL: http://jira.codehaus.org/browse/GEOT-1499 Project: GeoTools Issue Type: Bug Components: data wfs Affects Versions: 2.5-M0, 2.4-RC0 Environment: Fedora 7 (kernel 2.6.22.5-76.fc7) Java(TM) SE Runtime Environment (build 1.6.0_02-b05) Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing) Reporter: Gustavo Gir=E1ldez Assignee: David Zwiers Priority: Minor Attachments: wfs-patch-1.patch The getFeatures(Query query) method from WFSFeatureSource doesn't work with= the Query.ALL filter. This is because Query.ALL doesn't specify a typeName= , and this triggers the execution of the if (query.getTypeName() =3D=3D nul= l) branch. This creates an ad-hoc ALL inclusive query for the source type n= ame, but it doesn't actually use it.=20 Proposed fix is attached. --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |