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

OAPIF: api-key not included when requesting /collections endpoint #46535

Closed
1 of 2 tasks
AsgerPetersen opened this issue Dec 17, 2021 · 1 comment · Fixed by #47145
Closed
1 of 2 tasks

OAPIF: api-key not included when requesting /collections endpoint #46535

AsgerPetersen opened this issue Dec 17, 2021 · 1 comment · Fixed by #47145
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! WFS data provider

Comments

@AsgerPetersen
Copy link
Contributor

AsgerPetersen commented Dec 17, 2021

What is the bug or the crash?

Adding an api-key (or any additional query param) to an OAPIF service is supported as per #38436.

However the additional query param is not used when the /collections endpoint is requested.
image

If the service requires the param to be present for the /collections endpoint QGIS is not able to load any features from the service at all.

Steps to reproduce the issue

  1. In datasource manager create an OAPIF endpoint and add an extra query param. (In this case it is a demo which requires a token running on localhost)
    image

  2. Click connect and see the error
    image

  3. The missing param can be seen in the "Debugging/Developer Tools" panel
    image

Versions

Tested on 3.20.3 and 3.22.1.

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@AsgerPetersen AsgerPetersen added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Dec 17, 2021
elpaso added a commit to elpaso/QGIS that referenced this issue Feb 2, 2022
@AsgerPetersen
Copy link
Contributor Author

Thank you very much @elpaso !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! WFS data provider
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants