Skip to content
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

Closed
andrew-wils opened this issue Sep 21, 2017 · 2 comments
Assignees
Milestone

Comments

@andrew-wils
Copy link

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:

    <ows20:ExceptionText>Missing keyword: service</ows20:ExceptionText>

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

@tomkralidis
Copy link
Member

@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
fix CSW 3 GetRecords parameter handling (#543) (#544)
tomkralidis added a commit that referenced this issue Nov 10, 2017
fix CSW 3 GetRecords parameter handling (#543) (#544)
@kalxas
Copy link
Member

kalxas commented Nov 25, 2017

I think we can close this one now

@tomkralidis tomkralidis modified the milestones: 2.0.4, 2.2.0 Mar 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants