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

Differences in INI file structure between QGIS versions is not considered #7

Open
kannes opened this issue Jun 29, 2023 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@kannes
Copy link
Contributor

kannes commented Jun 29, 2023

Ref: https://lists.osgeo.org/pipermail/qgis-developer/2023-June/065957.html

Connections can be defined in the INI file in many different ways, e. g.:

[connections]
ows\items\WFS\connections\items\foo\authcfg =
ows\items\wfs\connections\items\foo\dpi-mode = All
ows\items\wfs\connections\items\foo\http-header = @Variant(\0\0\0\b\0\0\0\0)
ows\items\wfs\connections\items\foo\ignore-axis-orientation = false
...
ows\items\wfs\connections\items\foo\version = auto

[qgis]
WFS\foo\authcfg=
...
connections-wfs\foo\dpiMode = All
connections-wfs\foo\ignoreAxisOrientation = false
...
connections\WFS\foo\authcfg =
connections\WFS\foo\password =
connections\WFS\foo\username =

This seems to be due to changes between QGIS versions.

Currently the Profile Manager only looks for "connections-" under "[qgis]".

This affects at least the "Data Sources", but might affect other things from QGIS3.ini too.

@kannes kannes added the bug Something isn't working label Jun 29, 2023
@kannes
Copy link
Contributor Author

kannes commented Oct 25, 2024

The INI file is too much of a mess. It does not make sense to invest too much effort into something that unstable and undocumented...

So my (hopefully reasonable and functional) plan is:

  • For each data source type I will catalog all known places where it might be stored, regardless as to why and the usefulness of those settings keys.
  • During data source discovery the plugin will simple collect all those occurences and store the sections + keys + values.
  • Then we can use that to just transfer the whole bunch to a different profile (ignoring if some keys might be deprecated and unused in newer versions) or to delete all that from the profile.

@kannes kannes self-assigned this Oct 25, 2024
@kannes
Copy link
Contributor Author

kannes commented Oct 27, 2024

Got it working pretty well, got into a frenzy of more clean up too though which might take a few evenings.

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