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

fix OAI HTTP POST support #494

Open
2 of 8 tasks
tomkralidis opened this issue Dec 22, 2016 · 0 comments
Open
2 of 8 tasks

fix OAI HTTP POST support #494

tomkralidis opened this issue Dec 22, 2016 · 0 comments
Milestone

Comments

@tomkralidis
Copy link
Member

tomkralidis commented Dec 22, 2016

Description

Running HTTP POST (form-like, not XML payload) requests against a pycsw endpoint in OAI mode results in exception. pycsw in POST mode assumes it's an XML payload. The OAI spec requires both GET and POST to be supported.

Environment

  • operating system: Debian
  • Python version: 2.7.9
  • pycsw version: master
  • source/distribution
    • git clone
    • DebianGIS/UbuntuGIS
    • PyPI
    • zip/tar.gz
    • other (please specify):
  • web server
    • Apache/mod_wsgi
    • CGI
    • other (please specify):

Steps to Reproduce

 curl -X POST -F "mode=oaipmh" -F "verb=Identify" http://demo.pycsw.org/cite/csw

OR

<html>
 <head><title>test post</title></head>
 <body>
  <form method="post" action="http://demo.pycsw.org/cite/csw">
   <input type="text" name="mode" value="oaipmh"/>
   <input type="text" name="verb" value="Identify"/>
   <input type="submit" name="submit" value="Submit"/>
  </form>
 </body>
</html>

Additional Information

We need a way to detect a POST request that is not an XML payload and process into pycsw's kvp setup.

@tomkralidis tomkralidis added this to the 2.0.3 milestone Dec 22, 2016
@tomkralidis tomkralidis modified the milestones: 2.0.3, 2.2.0 Jun 2, 2017
@tomkralidis tomkralidis modified the milestones: 2.2.0, 2.4.0 Mar 19, 2018
@tomkralidis tomkralidis modified the milestones: 2.4.0, 2.6.0 May 15, 2019
@tomkralidis tomkralidis modified the milestones: 2.6.0, 2.8.0 Jan 22, 2021
@kalxas kalxas modified the milestones: 2.8.0, 3.0.0 Jun 2, 2021
@kalxas kalxas modified the milestones: 3.0.0, FUTURE Oct 15, 2022
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

2 participants