3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
257 stars 143 forks source link

Print a map with a dynamic content in HTML does not work anymore #4895

Closed arno974 closed 1 week ago

arno974 commented 1 week ago

What is the bug? (in English)

In QGIS layout if my label is specify as HTML content Lizmap does not print the content filled by the user anymore.

QGIS Map layout HTML configuration image image

Lizmap Print form image

Lizmap Print result image

Parameters seems to be correctly sent to the GetPrint request : image

If I uncheck HTML content, then everything is fine.

QGIS Map layout HTML configuration image

Lizmap Print form image

Lizmap Print result image

Steps to reproduce the issue

  1. Create a new layout with a text as HTML content
  2. Add an ID to the text so users can change the content
  3. Print a map in Lizmap. The text is not updated

Versions, safeguards, check summary etc

Versions :

List of Lizmap Web Client modules :
* Version Lizmap Web Client 3.8 needed
List of safeguards :
* Mode : normal * Allow parent folder : no * Prevent other drive : yes * Prevent PG service : yes * Prevent PG Auth DB : yes * Force PG user&pass : yes * Prevent ECW : yes

Check Lizmap plugin

Operating system

Ubuntu 20.04

Browsers

Firefox

Browsers version

Firefox 122.0

Relevant log output

No response

Gustry commented 1 week ago

QGIS Desktop : 3.28.11 QGIS Server : 3.34.9

Can you try with generating your project in 3.34 ?

Linked to the new feature https://changelog.qgis.org/en/qgis/version/3.32/#layout-insure-hyperlinks-within-html-enabled-label

Work in QGIS Server https://github.com/qgis/QGIS/pull/56777

arno974 commented 1 week ago

Indeed it was due to a different version between QGIS Desktop and QGIS Server... Sorry !