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

QGIS Server: WMS does not notice changes of QGIS Project in PostGIS, but WFS does #56622

Closed
2 tasks done
JakobMiksch opened this issue Mar 1, 2024 · 2 comments · Fixed by #56923
Closed
2 tasks done
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server

Comments

@JakobMiksch
Copy link

What is the bug or the crash?

When running QGIS Server with QGIS_SERVER_PROJECT_CACHE_STRATEGY=periodic (see docs), QGIS Server should react on changes of the QGIS project. This works well for WFS but not for WMS.

Steps to reproduce the issue

  • start QGIS Server 3.36 with this settings (Docker compose file as example)
version: '3.8'
services:
  qgis_server:
    image: camptocamp/qgis-server:3.36
    volumes:
      - ./pg_service.conf:/home/.pg_service.conf
    environment:
      - QGIS_SERVER_PROJECT_CACHE_STRATEGY=periodic
      - PGSERVICEFILE=/home/.pg_service.conf
    ports:
      - "8082:80"
  • create a QGIS project with a vector layer named alpha and ensure it is published both as WMS and WFS
  • store this project in PostGIS
  • Make a WMS and a WFS capabilities request to the project in the database and remember the response
    • both responses should list the layer alpha in their response
  • change the the name of the layer in your QGIS project from alpha to beta and save the project
  • Request the WMS and the WFS capabilities again. Result:
    • WFS contains the layer called beta in its response
    • WMS still contains alpha in its response

Versions

3.36

Supported QGIS version

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

New profile

Additional context

No response

@JakobMiksch JakobMiksch added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Mar 1, 2024
@agiudiceandrea agiudiceandrea added the Server Related to QGIS server label Mar 5, 2024
@pblottiere
Copy link
Member

I can reproduce the issue, I'm taking a look.

@JakobMiksch
Copy link
Author

Thanks @pblottiere for fixing this 👍

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
3 participants