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

Fix missing path prefix in next page links in GET items response #444

Open
1 task
anayeaye opened this issue Oct 22, 2024 · 0 comments
Open
1 task

Fix missing path prefix in next page links in GET items response #444

anayeaye opened this issue Oct 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@anayeaye
Copy link
Collaborator

What

The dynamically produced next page link in an item search response (i.e. /collections/{collection_id}/items) is invalid when the API is deployed with a path prefix. The solution is likely upstream so this ticket involves working with stac-fastapi and pgstac.

Report

it seems the pagination of the items is not configured correctly, so if you go to, e.g.:
https://openveda.cloud/api/stac/collections/no2-monthly/items
when you look at the "rel":"next" which indicates the link to fetch the next set of items, it does not have /api/stac/ in the path. "href":"https://openveda.cloud/collections/no2-monthly/items?token=next:no2-monthly:OMI_trno2_0.10x0.10_202212_Col3_V4.nc" so it seems our client is able to fetch the first 10 items, and then runs into a "forbidden" location

AC

  • next page link is valid in item search response
@anayeaye anayeaye added the bug Something isn't working label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant