qgis-server mixing layer db-connections #21155
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Crash/Data Corruption
Server
Related to QGIS server
Author Name: Tom Palan (@tpalan)
Original Redmine Issue: 13088
Affected QGIS version: master
Redmine category:qgis_server
Environment:
2 PostGIS databases
2 project files, one for each database
When using the qgis-web-client and qgis-server to display the projects, the qgis-server mixes the database-connections and displays data from the other project. This happens randomly, but is reproducible after a few tries.
It only happens when the 2 projects are accessed simultaneously (e.g. using 2 browsers, and switching between them).
I compiled qgis-server from source (2015-06-08), and added some debug statements. Somehow after the QgsPostgresProvider for the layer is created (Line: "p3: Table name is.."), some calls to featureSource return the right datasource-uri, and some use another.
That's how far I got.
This happens on my Ubuntu 14.04 /64bit and Debian Jessie 64bit, using Apache2
I would be happy to supply some more information.
The text was updated successfully, but these errors were encountered: