-
-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GetRecords POST requires version and service attributes even though they are optional #544
Comments
tomkralidis
added a commit
to tomkralidis/pycsw
that referenced
this issue
Sep 21, 2017
2 tasks
tomkralidis
added a commit
to tomkralidis/pycsw
that referenced
this issue
Nov 9, 2017
2 tasks
tomkralidis
added a commit
that referenced
this issue
Nov 9, 2017
tomkralidis
added a commit
that referenced
this issue
Nov 9, 2017
@andrew-wils thanks for the report. I've fixed this in master and 2.0 branch. I'm surprised this wasn't caught by the OGC compliance tests for CSW 3.0. |
tomkralidis
added a commit
that referenced
this issue
Nov 10, 2017
tomkralidis
added a commit
that referenced
this issue
Nov 10, 2017
I think we can close this one now |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The CSW schema defines the version and service parameters to be optional:
<xsd:attribute name="service" type="ows:ServiceType" use="optional" default="CSW"/> <xsd:attribute name="version" type="ows:VersionType" use="optional" default="3.0.0"/>
However, sending a GetRecords POST request without them triggers the following exception:
Environment
Steps to Reproduce
HTTP POST the following:
<?xml version='1.0' encoding='UTF-8'?> <csw30:GetRecords xmlns:csw30="http://www.opengis.net/cat/csw/3.0"> <csw30:Query typeNames="csw30:Record"> <csw30:ElementSetName>full</csw30:ElementSetName> </csw30:Query> </csw30:GetRecords>
to
http://demo.pycsw.org/cite/csw?request=GetRecords
The text was updated successfully, but these errors were encountered: