Bug report #10068
Updated by Giovanni Manghi over 7 years ago
Hi !
When serving WMS maps, it seems QGIS servers caches the layers using their id, but with no regard to the project file.
Example :
myproject_1.qgs and myproject_2.gs both have a layer called mylayer with id mylayer20140515221023333 (this can easily happen if the project was duplicated for instance)
http://server/wms/myproject_1?LAYERS=mylayer&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=10,10,20,20
Displays mylayer as in myproject_1.
http://server/wms/myproject_2?LAYERS=mylayer&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=10,10,20,20
Displays mylayer as in myproject_1 instead of mylayer as in myproject_2 !!
At this point, the only way I found to display mylayer from myproject_2 is to restart the server, which makes it then in turn impossible to display mylayer from myproject1...
Thanks !!
Olivier
When serving WMS maps, it seems QGIS servers caches the layers using their id, but with no regard to the project file.
Example :
myproject_1.qgs and myproject_2.gs both have a layer called mylayer with id mylayer20140515221023333 (this can easily happen if the project was duplicated for instance)
http://server/wms/myproject_1?LAYERS=mylayer&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=10,10,20,20
Displays mylayer as in myproject_1.
http://server/wms/myproject_2?LAYERS=mylayer&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=10,10,20,20
Displays mylayer as in myproject_1 instead of mylayer as in myproject_2 !!
At this point, the only way I found to display mylayer from myproject_2 is to restart the server, which makes it then in turn impossible to display mylayer from myproject1...
Thanks !!
Olivier