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

webconnections xml is invalid due to missing namespace prefix #60242

Open
1 of 2 tasks
Vincentvd-T opened this issue Jan 23, 2025 · 0 comments
Open
1 of 2 tasks

webconnections xml is invalid due to missing namespace prefix #60242

Vincentvd-T opened this issue Jan 23, 2025 · 0 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Source Manager QGIS Browser

Comments

@Vincentvd-T
Copy link

What is the bug or the crash?

From the QGIS browser, you can export the webconnections (e.g. xyz tiles, wm(t)s connection etc) to an xml file. However, this xml file is not valid xml because the http-header prefix is unbound/not defined. The result is that without preprocessing, tools like Python don't accept this xml.

<!DOCTYPE connections>
<qgsXYZTilesConnections version="1.0">
    <xyztiles username="" zmax="18" name="OSMq" password="" tilePixelRatio="0" zmin="0" authcfg="" url="https://tile.openstreetmap.org/{z}/{x}/{y}.png" referer="" http-header:referer=""/>
</qgsXYZTilesConnections>

Steps to reproduce the issue

  1. Add https://tile.openstreetmap.org/{z}/{x}/{y}.png as XYZ tileserver connection in the QGIS browser
  2. Export the connection as xml

Versions

QGIS-versie
3.34.14-Prizren
QGIS code revisie
0cdaf6d
Qt versie
5.15.13
Python versie
3.12.8
GDAL/OGR versie
3.9.3
PROJ versie
9.5.0
EPSG-register databaseversie
v11.016 (2024-08-31)
GEOS versie
3.13.0-CAPI-1.19.0
SQLite versie
3.46.1
PDAL versie
2.8.1
PostgreSQL client versie
16.2
SpatiaLite versie
5.1.0
QWT versie
6.3.0
QScintilla2 versie
2.14.1
OS versie
Windows 10 Version 2009

Actieve Python plug-ins
pdokservicesplugin
5.1.1
db_manager
0.1.20
DDB_plugin
1.0.0
grassprovider
2.12.99
MetaSearch
0.3.6
processing
2.12.99
tauw_flagdotmap_plugin
1.0.0

Supported QGIS version

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

New profile

Additional context

No response

@Vincentvd-T Vincentvd-T added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jan 23, 2025
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! Data Source Manager QGIS Browser
Projects
None yet
Development

No branches or pull requests

2 participants