Bug report #17668

QGIS Server lost the ability to respond to GetMap requests for Groups

Added by Tudor Bărăscu over 2 years ago. Updated over 2 years ago.

Status:Closed
Priority:High
Assignee:Paul Blottiere
Category:QGIS Server
Affected QGIS version:master Regression?:Yes
Operating System:Debian Stretch Easy fix?:No
Pull Request or Patch supplied:No Resolution:fixed/implemented
Crashes QGIS or corrupts data:No Copied to github as #:25565

Description

If you have a group (let's say countriesgroup) in your project file, it is advertised as a layer in the WMS GetCapabilities but it cannot be accessed with GetMap or GetPrint anymore.

<ServiceExceptionReport version="1.3.0"><ServiceException code="LayerNotDefined">Layer "countriesgroup" does not exist</ServiceException></ServiceExceptionReport>

This is a regression as it worked on 2.x versions.

Steps to reproduce:

- Create a group in your project file
- Try and access that group with a GetMap request

bug_project.zip (3.95 MB) Tudor Bărăscu, 2017-12-11 12:22 PM

Associated revisions

Revision ac27347a
Added by Pierre-Eric Pelloux-Prayer over 2 years ago

[server] Fix layers group handling

Load layers groups from project file to be able to use them in queries.

Fixes #17668

History

#1 Updated by Alessandro Pasotti over 2 years ago

Can you please attach a test project?

#2 Updated by Tudor Bărăscu over 2 years ago

Sure! I can replicate under several projects I've tested, under different machines.
So I'm assuming every project that has a group exhibits the same issue.
Thanks for looking into it.

#3 Updated by Paul Blottiere over 2 years ago

  • Assignee set to Paul Blottiere

#4 Updated by Pierre-Eric Pelloux-Prayer over 2 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

#5 Updated by Giovanni Manghi over 2 years ago

  • Resolution set to fixed/implemented

Also available in: Atom PDF