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

[ArcGIS REST Server] Not honouring referer #55067

Open
2 tasks done
mmcc5678 opened this issue Oct 26, 2023 · 2 comments
Open
2 tasks done

[ArcGIS REST Server] Not honouring referer #55067

mmcc5678 opened this issue Oct 26, 2023 · 2 comments
Labels
ArcGIS REST provider Bug Either a bug report, or a bug fix. Let's hope for the latter! Configs and Options Networking

Comments

@mmcc5678
Copy link

What is the bug or the crash?

When creating a connection to an ArcGIS REST Server, the development tools shows that the referer (and custom headers) are not used in the resulting request, leading to "Invalid token : error 498" messages when a referer is required.

Steps to reproduce the issue

  1. Open Debugging/Dev Tools
  2. Enable Record Log
  3. Goto Data Source Manager
  4. Goto Esri REST Server
  5. Create New (Name: BLM, URL: https://gis.blm.gov/arcgis/rest/services, Referer: https://www.blm.gov)
  6. Save
  7. Connect
  8. Review associated request in Debugging/Dev Tools, it will show referer not honoured.

Versions

3.32.3

Supported QGIS version

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

New profile

Additional context

No response

@mmcc5678 mmcc5678 added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Oct 26, 2023
@alexbruy
Copy link
Contributor

There is a message in the console when connecting to the server

Settings '/connections/arcgisfeatureserver/items/%1/http-header' have a dynamic key but the dynamic key part was not provided

probably related to the recent settings rework.

@jo-chemla
Copy link

Hi there, I can confirm the ArcGIS REST Server connection won't parse either Referer or Custom Headers, as shown in the Debugging/Development Tools - selecting the request and inspecting request headers.

The debug logs show however that the qgis implementations for servers like WMS or XYZ do correctly pass these headers as request headers.

Related issue on the same subject still opened in case one should be closed.

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

No branches or pull requests

4 participants