Opened 12 years ago
#1013 new defect
CSW filter Literal that contains whitespace characters do not work
Reported by: | murrayh | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | v2.10.0 RC0 |
Component: | General | Version: | v2.8.0RC0 |
Keywords: | Cc: |
Description
Hello,
Perform a CSW request using a Literal that contains a space character. The filter will fail to match any records.
I am working around this issue by replacing whitespace characters with the "singleChar" wildcard.
Below is an example CSW query. I will attach a relevant metadata record to this issue.
Cheers, Murray
DOES NOT WORK:
<?xml version="1.0"?> <csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" service="CSW" version="2.0.2" resultType="results" outputSchema="csw:IsoRecord" maxRecords="9999">
<csw:Query typeNames="gmd:MD_Metadata">
<csw:ElementSetName>full</csw:ElementSetName> <csw:Constraint version="1.1.0">
<Filter xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml">
<PropertyIsLike wildCard="*" singleChar="?" escapeChar="\">
<PropertyName>Subject</PropertyName> <Literal>Media Graphics</Literal>
</Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>
DOES WORK:
<?xml version="1.0"?> <csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" service="CSW" version="2.0.2" resultType="results" outputSchema="csw:IsoRecord" maxRecords="9999">
<csw:Query typeNames="gmd:MD_Metadata">
<csw:ElementSetName>full</csw:ElementSetName> <csw:Constraint version="1.1.0">
<Filter xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml">
<PropertyIsLike wildCard="*" singleChar="?" escapeChar="\">
<PropertyName>Subject</PropertyName> <Literal>Media?Graphics</Literal>
</Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>