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

Please add OGC CSW-T documentation #4732

Closed
kikislater opened this issue Aug 14, 2019 · 4 comments
Closed

Please add OGC CSW-T documentation #4732

kikislater opened this issue Aug 14, 2019 · 4 comments
Labels
docs Issues addressing correction or improvement of documentation wontfix Stale Bot: Stale issue

Comments

@kikislater
Copy link
Contributor

kikislater commented Aug 14, 2019

Expected Behavior

A POST request should allow to send metadata as it's a standard OGC service. Please provide instructions to send similar operation to Geonode pycsw like we can find in official pycsw documentation here : https://pycsw.org/faq/#how-can-i-make-csw-post-xml-requests

Actual Behavior

Do not pass credential authorization :

<ows:ExceptionText>Transaction (insert) failed: 'GeoNodeRepository' object has no attribute 'session'.</ows:ExceptionText>

Steps to Reproduce the Problem

  1. Allow CSW-T in local_settings.py with :
        'manager': {
            # authentication/authorization is handled by Django
            'transactions': 'true',
            'allowed_ips': '*',
            # 'csw_harvest_pagesize': '10',
        }, 
curl -X POST -d @./CSW-Transaction-Insert.xml https://<user>:<pass>@<host>/catalogue/csw

or

curl -X POST -d "grant_type=password&username=<user>&password=<pass>" @./CSW-Transaction-Insert.xml http://<host>/catalogue/csw
  1. cat CSW-Transaction-Insert.xml
<?xml version="1.0" encoding="UTF-8"?>
<csw:Transaction
        version="2.0.2"
        service="CSW"
        xmlns:csw="http://www.opengis.net/cat/csw/2.0.2">
  <csw:Insert typeName="csw:Record">
    <csw:Record
        xmlns:ows="http://www.opengis.net/ows"
        xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
        xmlns:dc="http://purl.org/dc/elements/1.1/"
        xmlns:dct="http://purl.org/dc/terms/"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <dc:identifier>12345</dc:identifier>
      <dc:title>Null Island</dc:title>
      <ows:BoundingBox crs="urn:x-ogc:def:crs:EPSG:6.11:4326">
        <ows:LowerCorner>0 0</ows:LowerCorner>
        <ows:UpperCorner>0 0</ows:UpperCorner>
      </ows:BoundingBox>
    </csw:Record>
  </csw:Insert>

Specifications

  • GeoNode version: 2.10.1
  • Installation method (manual, GeoNode Docker, SPCGeoNode Docker): SPC
  • Platform: Archlinux
  • Additional details: CSW-T already implemented as seen here => GNIP-67: GeoNode CSW-T #2467
@kikislater kikislater changed the title Please add CSW-T documentation Please add OGC CSW-T documentation Aug 14, 2019
@t-book t-book added the docs Issues addressing correction or improvement of documentation label Aug 14, 2019
@stale
Copy link

stale bot commented Oct 13, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix Stale Bot: Stale issue label Oct 13, 2019
@t-book t-book removed the wontfix Stale Bot: Stale issue label Oct 13, 2019
@stale
Copy link

stale bot commented Dec 12, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix Stale Bot: Stale issue label Dec 12, 2019
@gannebamm
Copy link
Contributor

I am not sure but I think the described behaviour is created by this passing instead of doing anything:

https://github.com/GeoNode/geonode/blob/master/geonode/catalogue/backends/pycsw_local.py#L70

@stale stale bot removed the wontfix Stale Bot: Stale issue label Dec 13, 2019
@stale
Copy link

stale bot commented Feb 11, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix Stale Bot: Stale issue label Feb 11, 2020
@stale stale bot closed this as completed Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Issues addressing correction or improvement of documentation wontfix Stale Bot: Stale issue
Projects
None yet
Development

No branches or pull requests

3 participants