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áldez
            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() == null) branch. 
This creates an ad-hoc ALL inclusive query for the source type name, but it 
doesn't actually use it. 

Proposed fix is attached.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to