codice / ddf

DDF Distributed Data Framework - an open source, modular integration framework.
http://ddf.codice.org
Other
132 stars 181 forks source link

CSW Source does not properly properly map namespace prefixes #6618

Closed jlcsmith closed 2 years ago

jlcsmith commented 3 years ago

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

stale[bot] commented 2 years ago

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.