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

GetRecordById via HTTP POST exception #526

Open
dennisdahlmann opened this issue Mar 4, 2024 · 3 comments
Open

GetRecordById via HTTP POST exception #526

dennisdahlmann opened this issue Mar 4, 2024 · 3 comments
Assignees

Comments

@dennisdahlmann
Copy link

Describe the bug
Executing a GetRecordById, including the Id element, request via HTTP POST throws an exception with the text: CSW: The Id parameter is missing.

To Reproduce
Steps to reproduce the behavior:
Send a HTTP POST request with a valid Id to your CSW instance, e.g.
<GetRecordById service="CSW" version="2.0.2" xmlns="http://www.opengis.net/cat/csw/2.0.2" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:ogc="http://www.opengis.net/ogc" xmlns:ows="http://www.opengis.net/ows" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Id>yourID</Id> <ElementSetName>full</ElementSetName> </GetRecordById>

Expected behavior
If the Id element is in the request and is valid, I expect to get a GetRecordByIdResponse instead of an Exception Report

@mhogeweg
Copy link
Member

mhogeweg commented Mar 4, 2024

hi, the key is to use the correct id. As an example, consider this record:

https://gpt.geocloud.com/geoportal2/rest/metadata/item/81b64034070743aea455078dbf560c0c/html

its content in the index is this:
https://gpt.geocloud.com/geoportal2/rest/metadata/item/81b64034070743aea455078dbf560c0c?pretty=true

its CSW GetRecordById request is: https://gpt.geocloud.com/geoportal2/csw?request=GetRecordByID&service=CSW&version=2.0.2&id=81b64034070743aea455078dbf560c0c

hope this helps

@dennisdahlmann
Copy link
Author

Hi and thanks for the quick response.
The problem here is that the HTTP POST body is not processed, the HTTP GET request you mentioned is working well. We want/have to provide the HTTP POST method, only providing HTTP GET is not working on the client side

@mhogeweg
Copy link
Member

We'll add this to our backlog as an enhancement request.

@mhogeweg mhogeweg added this to the 2.7.2 milestone Jun 17, 2024
@mhogeweg mhogeweg removed this from the 2.7.2 milestone Oct 4, 2024
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