Home
My Page
Projects
deegree

[#6251] CSW request with invalid PropertyIsLike filter is not correctly handled

Date:
2011-10-14 13:42
Priority:
3
State:
Open
Submitted by:
Damiano Albani (dalbani)
Assigned to:
Nobody (None)
Hardware:
None
Operating System:
None
Version:
None
Severity:
normal
Resolution:
Fixed
 
URL:
Component:
CSW
 
Summary:
CSW request with invalid PropertyIsLike filter is not correctly handled

Detailed description
Given a request like:



<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:PropertyIsLike wildCard="_" escapeChar="%" singleChar="?">

<ogc:PropertyName>AnyText</ogc:PropertyName>

<ogc:Literal>test</ogc:Literal>

</ogc:PropertyIsLike>

</ogc:Filter>

</csw:Constraint>

</csw:Query>

</csw:GetRecords>



If you omit to specify a character in either "wildCard", "espaceChar" or "singleChar" attribute, deegree goes crazy memory-wise for a while and then generates this error: "Java heap space".



Tested with deegree 3.1rc2.

Followup

Message
Date: 2011-10-20 10:58
Sender: Lyn Buesching

Thanks for reporting this. I've fixed this bug in 3.1-rc5-SNAPSHOT to throw an exception, if one of wildCard, espaceChar or singleChar are not exactly one character.

Attached Files:

Changes:

Field Old Value Date By
ResolutionNone2011-10-20 10:58lbuesching

This site is hosted by Intevation GmbH