When loading the editing form creation for a PostgreSQL layer which is invalid (wrong credentials), Lizmap fails silently and keep displaying the "progress bar" in the left panel.
The errors.log file shows the issue, for example if the PostgreSQL layer datasource credentials are wrong pg_connect(): Unable to connect to PostgreSQL server: FATAL[...]
Steps to reproduce the issue
Create a working QGIS project with a PostgreSQL layer
Publish this project with editing capabilities for this layer
Edit the qgs file in a Text editor and replace the correct PostgreSQL user name with a non-existing PostgreSQL role
Publish the new QGIS project
Load the map : the Editing tool is still present, even if the layer is now invalid. When using the editing tool and create a new feature, the error happens.
Versions, safeguards, check summary etc
Last LWC master and previous versions
QGIS Server versions, perhaps since the existence of the environment variable QGIS_SERVER_IGNORE_BAD_LAYERS
Check Lizmap plugin
[X] I have done the step just before in the Lizmap QGIS desktop plugin before opening this ticket. Otherwise, my ticket is not considered valid and might get closed.
What is the bug? (in English)
When loading the editing form creation for a PostgreSQL layer which is invalid (wrong credentials), Lizmap fails silently and keep displaying the "progress bar" in the left panel.
The
errors.log
file shows the issue, for example if the PostgreSQL layer datasource credentials are wrongpg_connect(): Unable to connect to PostgreSQL server: FATAL[...]
Steps to reproduce the issue
Versions, safeguards, check summary etc
Last LWC master and previous versions QGIS Server versions, perhaps since the existence of the environment variable QGIS_SERVER_IGNORE_BAD_LAYERS
Check Lizmap plugin
Operating system
Any
Browsers
Firefox, Chrome, Safari, Microsoft Edge
Browsers version
Last
Relevant log output
No response