Bug report #7956

QGIS Server: problem with two project with same layers

Added by leolami - over 11 years ago. Updated about 6 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:QGIS Server
Affected QGIS version:1.8.0 Regression?:No
Operating System:Ubuntu Easy fix?:No
Pull Request or Patch supplied:No Resolution:not reproducable
Crashes QGIS or corrupts data:No Copied to github as #:16816

Description

Hi all,

there is a problem when I have two projects with one or more layers that are present in both projects.
If I set different styles for this layers in QGIS Desktop and I see the two projects in QGis Server I have no difference styles for this layers.
It seems that the first project load in QGis Server is ruling.

I'm using QGIS 1.8

Best regards


Related issues

Duplicated by QGIS Application - Bug report #10068: QGIS server caches layers with same ID but in different p... Closed 2014-04-14

History

#1 Updated by Marco Hugentobler over 11 years ago

  • Status changed from Open to Feedback

Do the layers have the same layerID?
The layer id is meant to be globally unique. Otherwise, the QGIS server won't be able to cache layers and styles (and thus loose performance).

#2 Updated by leolami - over 11 years ago

Hi,

No problem if the layers have different id.

But in a classic workflow is possible that fot the preparation of a project we start with a template project.
So, in this case, the layers of the template project have the same id in all the derived projects.
If I change the associated style of one of this layers in a derived projects I don't have change in the WMS result.

Anyone had the same problem and know the way to resolve it?

A solution may be the association layer id / project at Qgis Server level?

All the best.

Leonardo

#3 Updated by Jürgen Fischer over 11 years ago

  • Status changed from Feedback to Open

#4 Updated by Paolo Cavallini almost 11 years ago

  • Target version changed from Version 2.0.0 to Future Release - High Priority

#5 Updated by Paolo Cavallini over 10 years ago

Agreed, a pretty annoying issue; having IDs as a combination of the project name and the layerid seems the way to go

#6 Updated by Giovanni Manghi over 7 years ago

  • Regression? set to No
  • Easy fix? set to No

#7 Updated by Giovanni Manghi over 6 years ago

  • Status changed from Open to Feedback

Please test with a recent QGIS release (2.18 or 3), if the issue/request is still valid change the affected version accordingly, if is fixed/implemented then close the ticket. Thanks!

#8 Updated by Giovanni Manghi about 6 years ago

  • Resolution set to not reproducable
  • Description updated (diff)
  • Status changed from Feedback to Closed

Closing for lack of feedback.

Also available in: Atom PDF