Skip to content

[ogcapi-records] 404's if identifier is a uri #998

Closed
@pvgenuchten

Description

@pvgenuchten

collections/xx/items/yy returns 404 not found if identifier is a uri, see for example

https://demo.pycsw.org/gisdata/collections/metadata:main/items/http://capita.wustl.edu/DataspaceMetadata_ISO/CIRA.VIEWS.BAf.xml

at first i thought it was a limitation of flask, but the current path converter does allow url's

when i try this locally (on a sqlite db) it works as expected, is it a postgres issue?

There are 2 cases:

  • direct 404 of flask, this was mostly fixed by using the path converter
  • 404 of pycsw, occurs incidentally, but for sure when url includes url operators ?&=# throws 'InvalidParameterValue'

Not sure how to improve, if troublesome uri's are truncated or hashed, the identifier does not match the identifier in the source or may not be unique anymore...

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