When the CSW Source receives a GetRecordsResponse, if the response contains a namespace prefix of anything other than "csw" for http://www.opengis.net/cat/csw an exception is thrown and the query fails. This is because the GetRecordsMessageBodyReade class does not use a namespace aware XML reader.
Steps to Reproduce
Set up a CSW federated source to a remote CSW service that returns GetRecordsResponses with a non "csw" namespace prefix. Submit a query to the federated source and observe the query fails.
Expected behavior :
The CSW Source should handle proper namespace mappings in the GetRecordsResponse.
Actual behavior:
The CSW Source requires the GetRecordsResponse to use the "csw" namespace prefix otherwise reading the response fails.
Reproduces how often:
100% of the time for CSW sources that respond with a anything other than the "csw" namespace prefix.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within 7 days. Thank you for your contributions.
Description
When the CSW Source receives a GetRecordsResponse, if the response contains a namespace prefix of anything other than "csw" for http://www.opengis.net/cat/csw an exception is thrown and the query fails. This is because the GetRecordsMessageBodyReade class does not use a namespace aware XML reader.
Steps to Reproduce
Set up a CSW federated source to a remote CSW service that returns GetRecordsResponses with a non "csw" namespace prefix. Submit a query to the federated source and observe the query fails.
Expected behavior :
The CSW Source should handle proper namespace mappings in the GetRecordsResponse.
Actual behavior:
The CSW Source requires the GetRecordsResponse to use the "csw" namespace prefix otherwise reading the response fails.
Reproduces how often:
100% of the time for CSW sources that respond with a anything other than the "csw" namespace prefix.
Platform and environment:
all
Affects versions
2.19.x+
Additional Information
n/a