Skip to content

OGC Records update does not support XML payloads #1194

@nicokant

Description

@nicokant

I'm using pycsw-3.0.0-beta2 with transactions enabled.

As documented it's possible to insert new items using POST and different content-types (xml, geojson), but it's not possible to update a single entry sending a new xml with the method PUT.

httpx.request(
            method="put",
            url="http://localhost:5000/collections/metadata:main/items/test_item",
            content="<?xml version="1.0" ?>\n<gmd:MD_Metadata xmlns:gco="http://www.isotc211.org/2005/ .....",
            headers={"Content-Type": "application/xml"},
        )

returns status 400

{"code": "InvalidParameterValue", "description": "No data found"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions