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

qgswfsparameters: Ensure to get the default value on wrong version #55333

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

ptitjano
Copy link
Contributor

@ptitjano ptitjano commented Nov 20, 2023

Description

QgsWfsParameters::versionAsNumber creates a QgsProjectVersion from
the version number defined in the request VERSION parameter. If the
version is not defined, the version 1.1.0 is used.
However, if the version number defined in the VERSION parameter is
not handled by QGIS (for example 2.0.0), the QgsProjectVersion is
nver populated which corresponds to use version 0.0.0 instead of
1.1.0, the default value.

This issue is fixed by always using version number 1.1.0 if the list
of handled versions (mVersions) does not contain the requested
version.

Funded by Ifremer

@github-actions github-actions bot added this to the 3.36.0 milestone Nov 20, 2023
@ptitjano ptitjano force-pushed the wfs-feature-version-number branch 2 times, most recently from 75001c3 to 95801ea Compare November 21, 2023 14:54
`QgsWfsParameters::versionAsNumber` creates a `QgsProjectVersion` from
the version number defined in the request `VERSION` parameter. If the
version is not defined, the version 1.1.0 is used.
However, if the version number defined in the `VERSION` parameter is
not handled by QGIS (for example 2.0.0), the `QgsProjectVersion` is
nver populated which corresponds to use version 0.0.0 instead of
1.1.0, the default value.

This issue is fixed by always using version number 1.1.0 if the list
of handled versions (`mVersions`) does not contain the requested
version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants