Home
My Page
Projects
deegree

[#2488] Invalid filters are not reported as errors, but ignored

Date:
2011-05-17 15:33
Priority:
3
State:
Open
Submitted by:
Damiano Albani (dalbani)
Assigned to:
Nobody (None)
Hardware:
None
Operating System:
None
Version:
None
Severity:
major
Resolution:
Fixed
 
URL:
Component:
CSW
 
Summary:
Invalid filters are not reported as errors, but ignored

Detailed description
Following a discussion I had with the GeoToolkit folks [1], I've run into some strange behavior of deegree -- at least to my understanding.



Basically, it looks like deegree is ignoring invalid filters in queries, in particular filters with a "PropertyIsEqualTo" constraint.



For instance, this query returns *ALL* records of the database:



<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"; xmlns="http://www.opengis.net/cat/csw/2.0.2"; xmlns:apiso="http://www.opengis.net/cat/csw/apiso/1.0"; xmlns:ogc="http://www.opengis.net/ogc"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; service="CSW" version="2.0.2" maxRecords="5" startPosition="1" resultType="results" outputFormat="application/xml" outputSchema="http://www.isotc211.org/2005/gmd"; xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2 http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd";>

<csw:Query typeNames="csw:Record">

<csw:ElementSetName typeNames="csw:Record">brief</csw:ElementSetName>

<csw:Constraint version="1.1.0">

<ogc:Filter>

<ogc:PropertyIsEqualTo>

<ogc:PropertyName>::identifier</ogc:PropertyName>

<ogc:Literal>0</ogc:Literal>

</ogc:PropertyIsEqualTo>

</ogc:Filter>

</csw:Constraint>

</csw:Query>

</csw:GetRecords>



I haven't read the official CSW specs so I don't know what the standard behavior is, but I can say that it has important implications.



Namely when the filter is used in a Delete transaction, which results into the deletion... of the whole database!



That looks like a critical problem to me. What do you think?



[1] http://lists.osgeo.org/pipermail/geotoolkit/2011-May/000568.html

Followup

Message
Date: 2011-10-14 13:31
Sender: Damiano Albani

Indeed, works fine now.
So I think this bug should be closed.
Date: 2011-05-26 09:16
Sender: Lyn Buesching

fixed in 3.1 (pre6-SNAPSHOT).
Date: 2011-05-26 08:32
Sender: Andreas Poth

@Lyn: can you please have a look if this still is true for deegree 3.1

Attached Files:

Changes:

Field Old Value Date By
ResolutionNone2011-05-26 09:16lbuesching
assigned_tolbuesching2011-05-26 09:16lbuesching
assigned_tonone2011-05-26 08:32apoth

This site is hosted by Intevation GmbH