I'm getting different results whether I'm querying the GeoNetwork CSW server
through the application or from external request. This happens with
GetRecords, but not with GetRecordById.
Below are server logs which show the problem.
Through GeoNetwork administration page "CSW ISO Profile test":
2012-04-02 11:14:06,971 INFO [jeeves.request] -
2012-04-02 11:14:06,971 INFO [jeeves.request] - HTML Request (from
192.168.0.62) : /geonetwork/srv/en/csw
2012-04-02 11:14:06,971 DEBUG [jeeves.request] - Method : POST
2012-04-02 11:14:06,971 DEBUG [jeeves.request] - Content type :
application/xml; charset=UTF-8
2012-04-02 11:14:06,971 DEBUG [jeeves.request] - Accept :
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
2012-04-02 11:14:06,971 DEBUG [jeeves.request] - Session id is z5e2qkouj99
2012-04-02 11:14:06,972 INFO [jeeves.service] - Dispatching : csw
2012-04-02 11:14:06,972 DEBUG [jeeves.service] - -> parameters are :
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:gmd="http://www.isotc211.org/2005/gmd" service="CSW" version="2.0.2">
<csw:Query typeNames="csw:Record">
<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>AnyText</PropertyName>
<Literal>%CBERS2%</Literal>
</PropertyIsLike>
</Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>
2012-04-02 11:14:06,973 INFO [jeeves.webapp.csw] - Received:
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:gmd="http://www.isotc211.org/2005/gmd" service="CSW" version="2.0.2">
<csw:Query typeNames="csw:Record">
<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>AnyText</PropertyName>
<Literal>%CBERS2%</Literal>
</PropertyIsLike>
</Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>
2012-04-02 11:14:06,973 DEBUG [jeeves.engine] - TransformerFactoryFactory:
de.fzi.dbs.xml.transform.CachingTransformerFactory
2012-04-02 11:14:06,973 DEBUG [jeeves.engine] - TransformerFactoryFactory:
produces transformer implementation net.sf.saxon.IdentityTransformer
2012-04-02 11:14:07,052 INFO [jeeves.service] - -> dispatching to output
for : csw
2012-04-02 11:14:07,052 INFO [jeeves.service] - -> writing xml for :
csw
2012-04-02 11:14:07,052 DEBUG [jeeves.service] - Service xml is :
<csw:GetRecordsResponse xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2
http://schemas.opengis.net/csw/2.0.2/CSW-discovery.x
sd">
<csw:SearchStatus timestamp="2012-04-02T11:14:06" />
<csw:SearchResults numberOfRecordsMatched="1" numberOfRecordsReturned="1"
elementSet="summary" nextRecord="0" />
</csw:GetRecordsResponse>
2012-04-02 11:14:07,052 INFO [jeeves.service] - -> output ended for :
csw
2012-04-02 11:14:07,052 INFO [jeeves.service] - -> dispatch ended for :
csw
Through external command-line HTTP request:
2012-04-02 11:14:26,865 INFO [jeeves.request] -
2012-04-02 11:14:26,865 INFO [jeeves.request] - HTML Request (from
192.168.0.62) : /geonetwork/srv/en/csw
2012-04-02 11:14:26,865 DEBUG [jeeves.request] - Method : POST
2012-04-02 11:14:26,865 DEBUG [jeeves.request] - Content type :
application/xml
2012-04-02 11:14:26,865 DEBUG [jeeves.request] - Accept : null
2012-04-02 11:14:26,865 DEBUG [jeeves.request] - Session id is 54lwlz4j4esg
2012-04-02 11:14:26,865 DEBUG [jeeves.request] - Session created for client
: 192.168.0.62
2012-04-02 11:14:26,867 INFO [jeeves.service] - Dispatching : csw
2012-04-02 11:14:26,867 DEBUG [jeeves.service] - -> parameters are :
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:gmd="http://www.isotc211.org/2005/gmd" service="CSW" version="2.0.2">
<csw:Query typeNames="csw:Record">
<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>AnyText</PropertyName>
<Literal>%CBERS2%</Literal>
</PropertyIsLike>
</Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>
2012-04-02 11:14:26,867 INFO [jeeves.webapp.csw] - Received:
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:gmd="http://www.isotc211.org/2005/gmd" service="CSW" version="2.0.2">
<csw:Query typeNames="csw:Record">
<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>AnyText</PropertyName>
<Literal>%CBERS2%</Literal>
</PropertyIsLike>
</Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>
2012-04-02 11:14:26,867 DEBUG [jeeves.engine] - TransformerFactoryFactory:
de.fzi.dbs.xml.transform.CachingTransformerFactory
2012-04-02 11:14:26,867 DEBUG [jeeves.engine] - TransformerFactoryFactory:
produces transformer implementation net.sf.saxon.IdentityTransformer
2012-04-02 11:14:26,920 INFO [jeeves.service] - -> dispatching to output
for : csw
2012-04-02 11:14:26,920 INFO [jeeves.service] - -> writing xml for :
csw
2012-04-02 11:14:26,920 DEBUG [jeeves.service] - Service xml is :
<csw:GetRecordsResponse xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2
http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd">
<csw:SearchStatus timestamp="2012-04-02T11:14:26" />
<csw:SearchResults numberOfRecordsMatched="0" numberOfRecordsReturned="0"
elementSet="summary" nextRecord="0" />
</csw:GetRecordsResponse>
2012-04-02 11:14:26,921 INFO [jeeves.service] - -> output ended for :
csw
2012-04-02 11:14:26,921 INFO [jeeves.service] - -> dispatch ended for :
csw
Am I doing anything wrong or could it be a configuration issue?
Thanks in advance,
André
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Different-result-for-same-CSW-HTTP-request-whether-from-within-GeoNetwork-or-external-tp4679279p4679279.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.