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

Missing Update operation for WFS layers without geometry #60185

Open
2 tasks done
gisuser0 opened this issue Jan 20, 2025 · 0 comments
Open
2 tasks done

Missing Update operation for WFS layers without geometry #60185

gisuser0 opened this issue Jan 20, 2025 · 0 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server

Comments

@gisuser0
Copy link

gisuser0 commented Jan 20, 2025

What is the bug or the crash?

Only Query, Insert and Delete are allowed for WFS layers without geometry. The Update operation is not available.

Steps to reproduce the issue

  1. load any table without geometry into a QGIS project and enable all the WFS capabilities: Insert, Update and Delete (Project -> Properties -> QGIS Server -> WFS/OAPIF tab)
  2. publish the project with QGIS-Server
  3. Query, Insert and Delete are listed in the Operations of the WFS getCapabilities but Update is missing
  4. open the layer with a WFS client (e.g. QGIS Desktop) and try to edit it: you can query, create and delete features but you can't update them

Versions

3.34.14 LTR (Windows and Linux)
3.40.2 (Windows and Linux)

Supported QGIS version

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

New profile

Additional context

Looking into the code it seems like the Update operation always requires the change geometry capability (Qgis::VectorProviderCapability::ChangeGeometries)

@gisuser0 gisuser0 added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jan 20, 2025
@agiudiceandrea agiudiceandrea added the Server Related to QGIS server label Jan 20, 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! Server Related to QGIS server
Projects
None yet
Development

No branches or pull requests

2 participants