-
Notifications
You must be signed in to change notification settings - Fork 44
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
To reproduce
In one shell in the stac-fastapi root:
docker-compose run --service-ports --rm databaseIn a second shell:
ENABLED_EXTENSIONS=query python -m stac_fastapi.pgstac.appThen:
$ curl http://localhost:8000/search
{"code":"AttributeError","description":"'SearchPostRequest' object has no attribute 'fields'"}% Expected behavior
stac-fastapi with the pgstac backend should allow search if the fields extension is not enabled. This does not affect the sqlalchemy backend, which appears to work w/o the fields extension.
Related issues
- Blocks my efforts to see if filter-lang parameter not being passed correctly to pgstac backend causing incorrect response for listing items in a collection #29 is fixed, because I can't enable
querywithoutfields(and apparently enablingfieldsfixes the issue) - Might be fixed by changes in Align fields extension behavior with extension suggestions stac-fastapi#527, which makes our handling of the
fieldsattribute on a search request more robust. We probably won't merge Align fields extension behavior with extension suggestions stac-fastapi#527, but whatever we do to resolve PgSTAC: Fields extension includes links even if not listed inincludes#27 might help fix this issue
geospatial-jeff
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working