Closed keshavnangare closed 6 years ago
I'm not able to reproduce this error. In general, the capabilities document seems invalid. Have you tried validating it?
@keshav-nangare Can you please recheck the reported error? Can you also add what environment you used for testing?
This issue is reproducible on local as well as on beta environment, according to the error log I think the service is invalid.
Locally tested on: OS: Windows 8.1 Teamengine: 5.2 ets-csw20 : 1.17
We should check if the error message can be improved.
Well, I can reproduce the failure too. Test csw:csw-2.0.2-GetRecordById-tc1.2
fails with the failure above. The following request (https://gptogc.esri.com/geoportal/csw)
<csw:GetRecords xmlns="http://www.occamlab.com/ctl"
xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:ctl="http://www.occamlab.com/ctl"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:dct="http://purl.org/dc/terms/"
xmlns:gen="java:com.occamlab.te.Generator"
xmlns:ows="http://www.opengis.net/ows"
xmlns:p="http://teamengine.sourceforge.net/parsers"
xmlns:parsers="http://www.occamlab.com/te/parsers"
xmlns:saxon="http://saxon.sf.net/"
xmlns:te="http://www.occamlab.com/te"
xmlns:tec="java:com.occamlab.te.TECore"
xmlns:tems="java:com.occamlab.te.web.MonitorServlet"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
resultType="results"
service="CSW"
version="2.0.2">
<csw:Query typeNames="csw:Record">
<csw:ElementSetName>brief</csw:ElementSetName>
</csw:Query>
</csw:GetRecords>
returns a GetRecords response with multiple BriefRecords and dc:identifier. E.g.:
<csw:BriefRecord>
<dc:identifier scheme="urn:x-esri:specification:ServiceType:ArcIMS:Metadata:FileID">http://www.tnccmaps.org:80/arcgis/services/GDE/pGDEs_FoxCanyonwebmap_GDEs/MapServer/1</dc:identifier>
<dc:identifier scheme="urn:x-esri:specification:ServiceType:ArcIMS:Metadata:DocID">{631CD53C-ABCB-4A03-AB89-8248F2B12A5B}</dc:identifier>
Test test does not consider multiple occurrences of dc:identifier, it selects all: https://github.com/opengeospatial/ets-csw202/blob/4bd0a94d1bc40def874c79e665e5775170128e6f/src/main/scripts/ctl/GetRecordById/CSW-GetRecordById-GET.xml#L159
This should be fixed to select the first one and rechecked if the failure occurs any longer.
Some tests are get failed with the following service URL.
http://gptogc.esri.com/geoportal/csw?request=GetCapabilities&service=CSW&AcceptVersions=2.0.2
Log file is here. log.txt